Document the fact that one is allowed to sleep while holding an sx lock.

Discussed with: jhb@
This commit is contained in:
Hartmut Brandt 2003-06-12 09:06:25 +00:00
parent eb74baf398
commit 33f73ee488
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116255

View File

@ -161,6 +161,8 @@ by the first argument.
.Pp
A thread may not own a shared lock and an exclusive lock simultaneously;
attempting to do so will result in deadlock.
.Sh CONTEXT
It is allowed to to own a shared lock or an exclusive lock while sleeping.
.Sh SEE ALSO
.Xr condvar 9 ,
.Xr mtx_pool 9 ,