- 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)
This commit is contained in:
parent
fc31408d87
commit
ab9fe4e1fe
@ -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 ,
|
||||
|
Loading…
Reference in New Issue
Block a user