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]
16The thread to be resumed.
17</dl>
18<h3>DESCRIPTION</h3>
19<p>
20The <strong>thread_resume</strong> function decrements the suspend count
21for <var>target_thread</var> 
22by one.  The thread is resumed if its suspend count goes to zero.
23If the suspend 
24count is still positive, <strong>thread_resume</strong> must be repeated
25until the count reaches 
26zero.
27<h3>NOTES</h3>
28<p>
29An attempt to lower the suspend count below zero is ignored.
30<h3>RETURN VALUES</h3>
31<p>
32Only generic errors apply.
33<h3>RELATED INFORMATION</h3>
34<p>
35Functions:
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>.
42