git: kernel - Add refcount_release_wakeup() and refcount_wait()
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Apr 21 12:03:58 PDT 2011
commit 12f43c12a9e5a40d22be28f83df5b323921d2567
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Apr 21 12:02:58 2011 -0700
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().
Summary of changes:
sys/conf/files | 1 +
sys/kern/kern_refcount.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++
sys/sys/refcount.h | 49 +++++++++++++++++---
3 files changed, 156 insertions(+), 7 deletions(-)
create mode 100644 sys/kern/kern_refcount.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/12f43c12a9e5a40d22be28f83df5b323921d2567
--
DragonFly BSD source repository
More information about the Commits
mailing list