kernel - Add refcount_release_wakeup() and refcount_wait()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 21 Apr 2011 19:02:58 +0000 (12:02 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 21 Apr 2011 19:02:58 +0000 (12:02 -0700)
commit12f43c12a9e5a40d22be28f83df5b323921d2567
tree8e4a146d72922ee9cf47e97974e0f26bd0c12408
parente1c4203a2aa8df5e660b96b08c77e4f23e752c89
kernel - Add refcount_release_wakeup() and refcount_wait()

* refcount_release_wakeup() releases a reference count and wakes up
  any waiters on the 1->0 transition.

* refcount_wait() waits for the last reference to go away.  When using
  this function all release operations on the field must use
  refcount_release_wakeup().
sys/conf/files
sys/kern/kern_refcount.c [new file with mode: 0644]
sys/sys/refcount.h