]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/semaphore_signal_all.html
xnu-7195.60.75.tar.gz
[apple/xnu.git] / osfmk / man / semaphore_signal_all.html
CommitLineData
13fec989
A
1<h2>semaphore_signal_all</h2>
2<hr>
3<p>
4<strong>Function</strong> - Wake up all threads blocked on a semaphore.
5<h3>SYNOPSIS</h3>
6<pre>
7<strong>kern_return_t semaphore_signal_all</strong>
8 <strong>(semaphore_t</strong> <var>semaphore</var><strong>);</strong>
9</pre>
10<h3>PARAMETERS</h3>
11<dl>
12<p>
13<dt> <var>semaphore</var>
14<dd>
15[in send right] The port naming the semaphore to be signalled.
16</dl>
17<h3>DESCRIPTION</h3>
18<p>
19The <strong>semaphore_signal_all</strong> function wakes up all of the
20threads blocked on the semaphore. The semaphore count is reset to
21zero.
22<h3>RETURN VALUES</h3>
23<dl>
24<p>
25<dt> <strong>KERN_INVALID_ARGUMENT</strong>
26<dd>
27The specified semaphore is invalid.
28<p>
29<dt> <strong>KERN_TERMINATED</strong>
30<dd>
31The specified semaphore has been destroyed.
32<p>
33<dt> <strong>KERN_SUCCESS</strong>
34<dd>
35The semaphore has been signalled.
36</dl>
37<h3>RELATED INFORMATION</h3>
38<p>
39Functions:
40<a href="semaphore_create.html"><strong>semaphore_create</strong></a>,
41<a href="semaphore_destroy.html"><strong>semaphore_destroy</strong></a>,
42<a href="semaphore_signal.html"><strong>semaphore_signal</strong></a>,