cvs commit: src/sys/kern kern_rwlock.c src/sys/sys _rwlock.h
rwlock.h
Attilio Rao
attilio at FreeBSD.org
Tue Jun 26 21:31:57 UTC 2007
attilio 2007-06-26 21:31:56 UTC
FreeBSD src repository
Modified files:
sys/kern kern_rwlock.c
sys/sys _rwlock.h rwlock.h
Log:
Introduce a new rwlocks initialization function: rw_init_flags.
This is very similar to sx_init_flags: it initializes the rwlock using
special flags passed as third argument (RW_DUPOK, RW_NOPROFILE,
RW_NOWITNESS, RW_QUIET, RW_RECURSE).
Among these, the most important new feature is probabilly that rwlocks
can be acquired recursively now (for both shared and exclusive paths).
Because of the recursion counter, the ABI is changed.
Tested by: Timothy Redaelli <drizzt at gufi.org>
Reviewed by: jhb
Approved by: jeff (mentor)
Approved by: re
Revision Changes Path
1.27 +85 -9 src/sys/kern/kern_rwlock.c
1.4 +1 -0 src/sys/sys/_rwlock.h
1.13 +17 -3 src/sys/sys/rwlock.h
More information about the cvs-src
mailing list