diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-04 07:53:35 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-04 07:53:35 +0000 |
commit | dbee7341f26a062b44799fd4001a83ef164a1eb3 (patch) | |
tree | c772260aeb8f96598009acd9a40007aabf85a497 | |
parent | f5afa046ff59075917d5110abb1571af120f1a83 (diff) | |
download | FreeBSD-src-dbee7341f26a062b44799fd4001a83ef164a1eb3.zip FreeBSD-src-dbee7341f26a062b44799fd4001a83ef164a1eb3.tar.gz |
Add SX_UNLOCKED define. It will be used with sx_assert(9) to be
sure that current thread does not hold given sx(9) lock.
Reviewed by: jhb
Approved by: jhb, scottl (mentor)
-rw-r--r-- | sys/sys/sx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sx.h b/sys/sys/sx.h index 5b9545c..3dc9be0 100644 --- a/sys/sys/sx.h +++ b/sys/sys/sx.h @@ -88,6 +88,7 @@ struct sx_args { #define SX_LOCKED LA_LOCKED #define SX_SLOCKED LA_SLOCKED #define SX_XLOCKED LA_XLOCKED +#define SX_UNLOCKED LA_UNLOCKED #endif /* INVARIANTS || INVARIANT_SUPPORT */ #ifdef INVARIANTS |