summaryrefslogtreecommitdiffstats
path: root/share/man/man9/sx.9
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-02-24 21:36:39 +0000
committerjhb <jhb@FreeBSD.org>2004-02-24 21:36:39 +0000
commit602c2e64218190365fca4720257ea9dfd33e4d5f (patch)
tree4e1bd5792b9f0dc46ea3e1d17ccc7453b68c5dcb /share/man/man9/sx.9
parent97f7ec13f100e5efd9404787f5dfe27e22b30d85 (diff)
downloadFreeBSD-src-602c2e64218190365fca4720257ea9dfd33e4d5f.zip
FreeBSD-src-602c2e64218190365fca4720257ea9dfd33e4d5f.tar.gz
- Clarify ambiguous statement about not being able to both slock and xlock
a single lock at the same time. - Avoid using "own" to refer to holding either a shared or exclusive lock as it is only really correct for exclusive locks. - Reword the sentence about sleep-ability to read easier. Requested by: truckman (1)
Diffstat (limited to 'share/man/man9/sx.9')
-rw-r--r--share/man/man9/sx.911
1 files changed, 7 insertions, 4 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9
index 5dce1be..0ff91c7 100644
--- a/share/man/man9/sx.9
+++ b/share/man/man9/sx.9
@@ -105,10 +105,10 @@ or
.Fn sx_try_xlock
and
.Fn sx_xunlock .
-A thread can attempt to upgrade a currently owned shared lock to an exclusive
+A thread can attempt to upgrade a currently held shared lock to an exclusive
lock by calling
.Fn sx_try_upgrade .
-A thread that owns an exclusive lock can downgrade it to a shared lock by
+A thread that has an exclusive lock can downgrade it to a shared lock by
calling
.Fn sx_downgrade .
.Pp
@@ -172,10 +172,13 @@ but with an additional argument,
that is used in generating unique variable names for the related
structures associated with the lock and the sysinit routine.
.Pp
-A thread may not own a shared lock and an exclusive lock simultaneously;
+A thread may not hold both a shared lock and an exclusive lock on the same
+lock simultaneously;
attempting to do so will result in deadlock.
.Sh CONTEXT
-It is allowed to own a shared lock or an exclusive lock while sleeping.
+A thread may hold a shared or exclusive lock on an
+.Nm
+lock while sleeping.
.Sh SEE ALSO
.Xr condvar 9 ,
.Xr mtx_pool 9 ,
OpenPOWER on IntegriCloud