git: DragonFly_RELEASE_2_8 kernel - revamp mtx_spinlock()

看板DFBSD_commit作者時間15年前 (2010/11/20 09:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit c40689e9b134213e4a3e29c2548d0ec47c7dd40b Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Oct 19 23:19:29 2010 -0700 kernel - revamp mtx_spinlock() * Revamp mtx_spinlock(), add mtx_spinlock_try(), and add mtx_spinunlock(). * Enter a proper hard critical section when using mtx_spinlock*(), just like the normal spinlock() code does. The difference is that mtx spinlocks have a ref count and thus are reentrant. * mtx_spinlock*() is not used in the code yet. A followup commit will begin using it for the syscons lock. Summary of changes: sys/kern/kern_mutex.c | 50 +++++++++++++++++++++++++++++- sys/sys/mutex.h | 4 +- sys/sys/mutex2.h | 81 +++++++++++++++++++++++++++++++++++++----------- 3 files changed, 113 insertions(+), 22 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c40689e9b134213e4a3e29c2548d0ec47c7dd40b -- DragonFly BSD source repository
文章代碼(AID): #1CvoKeQR (DFBSD_commit)