git: kernel - Add refcount_release_wakeup() and refcount_wait()

看板DFBSD_commit作者時間14年前 (2011/05/17 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1DqRGaqZ (DFBSD_commit)