]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/thread_terminate.html
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / man / thread_terminate.html
CommitLineData
13fec989
A
1<h2>thread_terminate</h2>
2<hr>
3<p>
4<strong>Function</strong> - Destroy a thread.
5<h3>SYNOPSIS</h3>
6<pre>
7<strong>kern_return_t thread_terminate</strong>
8 <strong>(thread_act_t</strong> <var>target_thread</var><strong>);</strong>
9</pre>
10<h3>PARAMETERS</h3>
11<dl>
12<p>
13<dt> <var>target_thread</var>
14<dd>
15[in thread send right]
16The thread to be destroyed.
17</dl>
18<h3>DESCRIPTION</h3>
19<p>
20The <strong>thread_terminate</strong> function kills <var>target_thread</var>.
21<h3>RETURN VALUES</h3>
22<p>
23Only generic errors apply.
24<h3>RELATED INFORMATION</h3>
25<p>
26Functions:
27<a href="task_terminate.html"><strong>task_terminate</strong></a>,
28<a href="task_threads.html"><strong>task_threads</strong></a>,
29<a href="thread_create.html"><strong>thread_create</strong></a>,
30<a href="thread_resume.html"><strong>thread_resume</strong></a>,
31<a href="thread_suspend.html"><strong>thread_suspend</strong></a>.