]> git.saurik.com Git - apple/xnu.git/blob - osfmk/man/thread_resume.html
xnu-7195.60.75.tar.gz
[apple/xnu.git] / osfmk / man / thread_resume.html
1 <h2>thread_resume</h2>
2 <hr>
3 <p>
4 <strong>Function</strong> - Resume a thread.
5 <h3>SYNOPSIS</h3>
6 <pre>
7 <strong>kern_return_t thread_resume</strong>
8 <strong>(thread_act_t</strong> <var>target_thread</var><strong>);</strong>
9 </pre>
10 <h3>PARAMETERS</h3>
11 <dl>
12 <p>
13 <dt> <var>target_thread</var>
14 <dd>
15 [in thread send right]
16 The thread to be resumed.
17 </dl>
18 <h3>DESCRIPTION</h3>
19 <p>
20 The <strong>thread_resume</strong> function decrements the suspend count
21 for <var>target_thread</var>
22 by one. The thread is resumed if its suspend count goes to zero.
23 If the suspend
24 count is still positive, <strong>thread_resume</strong> must be repeated
25 until the count reaches
26 zero.
27 <h3>NOTES</h3>
28 <p>
29 An attempt to lower the suspend count below zero is ignored.
30 <h3>RETURN VALUES</h3>
31 <p>
32 Only generic errors apply.
33 <h3>RELATED INFORMATION</h3>
34 <p>
35 Functions:
36 <a href="task_resume.html"><strong>task_resume</strong></a>,
37 <a href="task_suspend.html"><strong>task_suspend</strong></a>,
38 <a href="thread_create.html"><strong>thread_create</strong></a>,
39 <a href="thread_info.html"><strong>thread_info</strong></a>,
40 <a href="thread_suspend.html"><strong>thread_suspend</strong></a>,
41 <a href="thread_terminate.html"><strong>thread_terminate</strong></a>.