]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/semaphore_signal_all.html
xnu-344.tar.gz
[apple/xnu.git] / osfmk / man / semaphore_signal_all.html
CommitLineData
9bccf70c 1<h2>semaphore_signal_all</h2>\r<hr>\r<p>\r<strong>Function</strong> - Wake up all threads blocked on a semaphore.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t semaphore_signal_all</strong>\r <strong>(semaphore_t</strong> <var>semaphore</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>semaphore</var>\r<dd>\r[in send right] The port naming the semaphore to be signalled.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>semaphore_signal_all</strong> function wakes up all of the\rthreads blocked on the semaphore. The semaphore count is reset to\rzero.\r<h3>RETURN VALUES</h3>\r<dl>\r<p>\r<dt> <strong>KERN_INVALID_ARGUMENT</strong>\r<dd>\rThe specified semaphore is invalid.\r<p>\r<dt> <strong>KERN_TERMINATED</strong>\r<dd>\rThe specified semaphore has been destroyed.\r<p>\r<dt> <strong>KERN_SUCCESS</strong>\r<dd>\rThe semaphore has been signalled.\r</dl>\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="semaphore_create.html"><strong>semaphore_create</strong></a>,\r<a href="semaphore_destroy.html"><strong>semaphore_destroy</strong></a>,\r<a href="semaphore_signal.html"><strong>semaphore_signal</strong></a>,\r