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