xref: /xnu-8796.121.2/osfmk/man/thread_terminate.html (revision c54f35ca767986246321eb901baf8f5ff7923f6a)
1*c54f35caSApple OSS Distributions<h2>thread_terminate</h2>
2*c54f35caSApple OSS Distributions<hr>
3*c54f35caSApple OSS Distributions<p>
4*c54f35caSApple OSS Distributions<strong>Function</strong> - Destroy a thread.
5*c54f35caSApple OSS Distributions<h3>SYNOPSIS</h3>
6*c54f35caSApple OSS Distributions<pre>
7*c54f35caSApple OSS Distributions<strong>kern_return_t   thread_terminate</strong>
8*c54f35caSApple OSS Distributions                <strong>(thread_act_t</strong>                     <var>target_thread</var><strong>);</strong>
9*c54f35caSApple OSS Distributions</pre>
10*c54f35caSApple OSS Distributions<h3>PARAMETERS</h3>
11*c54f35caSApple OSS Distributions<dl>
12*c54f35caSApple OSS Distributions<p>
13*c54f35caSApple OSS Distributions<dt> <var>target_thread</var>
14*c54f35caSApple OSS Distributions<dd>
15*c54f35caSApple OSS Distributions[in thread send right]
16*c54f35caSApple OSS DistributionsThe thread to be destroyed.
17*c54f35caSApple OSS Distributions</dl>
18*c54f35caSApple OSS Distributions<h3>DESCRIPTION</h3>
19*c54f35caSApple OSS Distributions<p>
20*c54f35caSApple OSS DistributionsThe <strong>thread_terminate</strong> function kills <var>target_thread</var>.
21*c54f35caSApple OSS Distributions<h3>RETURN VALUES</h3>
22*c54f35caSApple OSS Distributions<p>
23*c54f35caSApple OSS DistributionsOnly generic errors apply.
24*c54f35caSApple OSS Distributions<h3>RELATED INFORMATION</h3>
25*c54f35caSApple OSS Distributions<p>
26*c54f35caSApple OSS DistributionsFunctions:
27*c54f35caSApple OSS Distributions<a href="task_terminate.html"><strong>task_terminate</strong></a>,
28*c54f35caSApple OSS Distributions<a href="task_threads.html"><strong>task_threads</strong></a>,
29*c54f35caSApple OSS Distributions<a href="thread_create.html"><strong>thread_create</strong></a>,
30*c54f35caSApple OSS Distributions<a href="thread_resume.html"><strong>thread_resume</strong></a>,
31*c54f35caSApple OSS Distributions<a href="thread_suspend.html"><strong>thread_suspend</strong></a>.
32