DragonFly commits List (threaded) for 2011-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Add refcount_release_wakeup() and refcount_wait()
commit 12f43c12a9e5a40d22be28f83df5b323921d2567
Author: Matthew Dillon <dillon@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]