4 <strong>Function
</strong> - Suspend the target task.
7 <strong>kern_return_t task_suspend
</strong>
8 <strong>(task_t
</strong> <var>task
</var><strong>);
</strong>
16 The port for the task to be suspended.
20 The
<strong>task_suspend
</strong> function increments the suspend count
21 for task and stops all
22 threads within the task. As long as the suspend count is positive,
23 no newly-created threads can execute. The function does not return until all
24 of the task's threads have been suspended.
27 To resume a suspended task and its threads, use
<strong>task_resume
</strong>.
29 count is greater than one,
<strong>task_resume
</strong> must be repeated
31 <h3>RETURN VALUES
</h3>
33 Only generic errors apply.
34 <h3>RELATED INFORMATION
</h3>
37 <a href=
"task_create.html"><strong>task_create
</strong></a>,
38 <a href=
"task_info.html"><strong>task_info
</strong></a>,
39 <a href=
"task_resume.html"><strong>task_resume
</strong></a>,
40 <a href=
"task_terminate.html"><strong>task_terminate
</strong></a>,
41 <a href=
"thread_suspend.html"><strong>thread_suspend
</strong></a>.