summaryrefslogtreecommitdiffstats
path: root/lib/libpcap
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-07-31 22:06:56 +0000
committerjhb <jhb@FreeBSD.org>2001-07-31 22:06:56 +0000
commit6394826cdebd455a666bee208c6a4addee909761 (patch)
treed8c8f3195ae390010ef53f396e85974e006af8aa /lib/libpcap
parent704f051282bf6cf5d382fc0506a40d3b7322fc3c (diff)
downloadFreeBSD-src-6394826cdebd455a666bee208c6a4addee909761.zip
FreeBSD-src-6394826cdebd455a666bee208c6a4addee909761.tar.gz
Apply the cluebat to myself and undo the await() -> mawait() rename. The
asleep() and await() functions split the functionality of msleep() up into two halves. Only the asleep() half (which is what puts the process on the sleep queue) actually needs the lock usually passed to msleep() held to prevent lost wakeups. await() does not need the lock held, so the lock can be released prior to calling await() and does not need to be passed in to the await() function. Typical usage of these functions would be as follows: mtx_lock(&foo_mtx); ... do stuff ... asleep(&foo_cond, PRIxx, "foowt", hz); ... mtx_unlock&foo_mtx); ... await(-1, -1); Inspired by: dillon on the couch at Usenix
Diffstat (limited to 'lib/libpcap')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud