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