diff options
author | Giorgos Keramidas <keramida@FreeBSD.org> | 2005-01-05 22:04:12 +0000 |
---|---|---|
committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2005-01-05 22:04:12 +0000 |
commit | b762042dce5636fadd283ab1eeefd446fe15e069 (patch) | |
tree | a92042e30f7d4ff4068f62f002d5271b85b85bed /share/man/man9/sx.9 | |
parent | d8315c79d932951f2db396014e28ffa03a31b850 (diff) |
Notes
Diffstat (limited to 'share/man/man9/sx.9')
-rw-r--r-- | share/man/man9/sx.9 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9 index 17ab2066e7519..9e5f0eb92bf27 100644 --- a/share/man/man9/sx.9 +++ b/share/man/man9/sx.9 @@ -196,6 +196,15 @@ attempting to do so will result in deadlock. A thread may hold a shared or exclusive lock on an .Nm lock while sleeping. +As a result, an +.Nm +lock may not be acquired while holding a mutex. +Otherwise, if one thread slept while holding an +.Nm +lock while another thread blocked on the same +.Nm +lock after acquiring a mutex, then the second thread would effectively +end up sleeping while holding a mutex, which is not allowed. .Sh SEE ALSO .Xr condvar 9 , .Xr mtx_pool 9 , |