DragonFly commits List (threaded) for 2010-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - revamp mtx_spinlock()
commit 38c3ee9b0b1222fcb84c6fe9da02ab2ff31e3faf
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/38c3ee9b0b1222fcb84c6fe9da02ab2ff31e3faf
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]