aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/thread_exit.9
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2007-03-09 22:41:01 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2007-03-09 22:41:01 +0000
commite7573e7ad73506300ecc8852a6befeac3c4b62fb (patch)
tree343c44631b470578282dfd1c1d3fb73ed2833f3c /share/man/man9/thread_exit.9
parentb9842b47e6c8753d111372a5c017e805785defaa (diff)
downloadsrc-e7573e7ad73506300ecc8852a6befeac3c4b62fb.tar.gz
src-e7573e7ad73506300ecc8852a6befeac3c4b62fb.zip
Allow threads to atomically release rw and sx locks while waiting for an
event. Locking primitives that support this (mtx, rw, and sx) now each include their own foo_sleep() routine. - Rename msleep() to _sleep() and change it's 'struct mtx' object to a 'struct lock_object' pointer. _sleep() uses the recently added lc_unlock() and lc_lock() function pointers for the lock class of the specified lock to release the lock while the thread is suspended. - Add wrappers around _sleep() for mutexes (mtx_sleep()), rw locks (rw_sleep()), and sx locks (sx_sleep()). msleep() still exists and is now identical to mtx_sleep(), but it is deprecated. - Rename SLEEPQ_MSLEEP to SLEEPQ_SLEEP. - Rewrite much of sleep.9 to not be msleep(9) centric. - Flesh out the 'RETURN VALUES' section in sleep.9 and add an 'ERRORS' section. - Add __nonnull(1) to _sleep() and msleep_spin() so that the compiler will warn if you try to pass a NULL wait channel. The functions already have a KASSERT to that effect.
Notes
Notes: svn path=/head/; revision=167387
Diffstat (limited to 'share/man/man9/thread_exit.9')
-rw-r--r--share/man/man9/thread_exit.94
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/thread_exit.9 b/share/man/man9/thread_exit.9
index 9dc8acb1b3cc..6a06433acebd 100644
--- a/share/man/man9/thread_exit.9
+++ b/share/man/man9/thread_exit.9
@@ -58,6 +58,6 @@ must be called with the
mutex held.
.Sh SEE ALSO
.Xr mi_switch 9 ,
-.Xr msleep 9 ,
.Xr mutex 9 ,
-.Xr runqueue 9
+.Xr runqueue 9 ,
+.Xr sleep 9