summaryrefslogtreecommitdiffstats
path: root/share/man/man9/sx.9
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-05-19 21:26:05 +0000
committerjhb <jhb@FreeBSD.org>2007-05-19 21:26:05 +0000
commit124d541ab4acefde141dea3737f7f29698982ed4 (patch)
tree9d3d7d22180ea60f42dff58637c17d8bf8ceb8ef /share/man/man9/sx.9
parent07a8df93210bc72e90e316d09db447acfdf4c10f (diff)
downloadFreeBSD-src-124d541ab4acefde141dea3737f7f29698982ed4.zip
FreeBSD-src-124d541ab4acefde141dea3737f7f29698982ed4.tar.gz
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
Diffstat (limited to 'share/man/man9/sx.9')
-rw-r--r--share/man/man9/sx.926
1 files changed, 13 insertions, 13 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9
index 68267b6..c6410e4 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.
OpenPOWER on IntegriCloud