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