diff options
author | dchagin <dchagin@FreeBSD.org> | 2014-12-13 21:00:10 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2014-12-13 21:00:10 +0000 |
commit | 6f2b57128c8cdb88f2777eed3c99e866c3c53e04 (patch) | |
tree | 953adb99f01e8d4c4fb2634bbc85b752a2c305b1 /sys/sys/mutex.h | |
parent | 7b50e3bb4b97cc0c655bf237c04e5caff51c5960 (diff) | |
download | FreeBSD-src-6f2b57128c8cdb88f2777eed3c99e866c3c53e04.zip FreeBSD-src-6f2b57128c8cdb88f2777eed3c99e866c3c53e04.tar.gz |
Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9).
A _NEW flag passed to _init_flags() to avoid check for double-init.
Differential Revision: https://reviews.freebsd.org/D1208
Reviewed by: jhb, wblock
MFC after: 1 Month
Diffstat (limited to 'sys/sys/mutex.h')
-rw-r--r-- | sys/sys/mutex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 4678600..ec0c241 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -52,6 +52,7 @@ #define MTX_RECURSE 0x00000004 /* Option: lock allowed to recurse */ #define MTX_NOWITNESS 0x00000008 /* Don't do any witness checking. */ #define MTX_NOPROFILE 0x00000020 /* Don't profile this lock */ +#define MTX_NEW 0x00000040 /* Don't check for double-init */ /* * Option flags passed to certain lock/unlock routines, through the use |