diff options
author | John Baldwin <jhb@FreeBSD.org> | 2007-05-19 21:26:05 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2007-05-19 21:26:05 +0000 |
commit | 7ec137e5b0d5e0db273bd286da858014101d6f46 (patch) | |
tree | 9d3d7d22180ea60f42dff58637c17d8bf8ceb8ef /share | |
parent | 1c9dbd15679d52f84e31936165b99e7823841be4 (diff) | |
download | src-7ec137e5b0d5e0db273bd286da858014101d6f46.tar.gz src-7ec137e5b0d5e0db273bd286da858014101d6f46.zip |
Rename the macros for assertion flags passed to sx_assert() from SX_* to
SA_* to match mutexes and rwlocks. The old flags still exist for
backwards compatiblity.
Requested by: attilio
Notes
Notes:
svn path=/head/; revision=169780
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/sx.9 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9 index 68267b6c7541..c6410e415910 100644 --- a/share/man/man9/sx.9 +++ b/share/man/man9/sx.9 @@ -200,22 +200,22 @@ for the assertions specified in .Fa what , and panics if they are not met. One of the following assertions must be specified: -.Bl -tag -width ".Dv SX_UNLOCKED" -.It Dv SX_LOCKED +.Bl -tag -width ".Dv SA_UNLOCKED" +.It Dv SA_LOCKED Assert that the current thread has either a shared or an exclusive lock on the .Vt sx lock pointed to by the first argument. -.It Dv SX_SLOCKED +.It Dv SA_SLOCKED Assert that the current thread has a shared lock on the .Vt sx lock pointed to by the first argument. -.It Dv SX_XLOCKED +.It Dv SA_XLOCKED Assert that the current thread has an exclusive lock on the .Vt sx lock pointed to by the first argument. -.It Dv SX_UNLOCKED +.It Dv SA_UNLOCKED Assert that the current thread has no lock on the .Vt sx lock pointed to @@ -224,16 +224,16 @@ by the first argument. .Pp In addition, one of the following optional assertions may be included with either an -.Dv SX_LOCKED , -.Dv SX_SLOCKED , +.Dv SA_LOCKED , +.Dv SA_SLOCKED , or -.Dv SX_XLOCKED +.Dv SA_XLOCKED assertion: -.Bl -tag -width ".Dv SX_NOTRECURSED" -.It Dv SX_RECURSED +.Bl -tag -width ".Dv SA_NOTRECURSED" +.It Dv SA_RECURSED Assert that the current thread has a recursed lock on .Fa sx . -.It Dv SX_NOTRECURSED +.It Dv SA_NOTRECURSED Assert that the current thread does not have a recursed lock on .Fa sx . .El @@ -306,8 +306,8 @@ does not hold a shared lock. In the .No non- Ns Dv WITNESS case, the -.Dv SX_LOCKED +.Dv SA_LOCKED and -.Dv SX_SLOCKED +.Dv SA_SLOCKED assertions merely check that some thread holds a shared lock. They do not ensure that the current thread holds a shared lock. |