4 <strong>Function
</strong> - Return the target task's list of threads.
7 <strong>kern_return_t task_threads
</strong>
8 <strong>(task_t
</strong> <var>task
</var>,
9 <strong>thread_act_port_array_t
</strong> <var>thread_list
</var>,
10 <strong>mach_msg_type_number_t*
</strong> <var>thread_count
</var><strong>);
</strong>
18 The port for the task for which the thread list is to
21 <dt> <var>thread_list
</var>
23 [out pointer to dynamic array of thread send rights]
25 threads within
<var>task
</var>, in no particular order.
27 <dt> <var>thread_count
</var>
30 The returned count of threads in
<var>thread_list
</var>.
34 The
<strong>task_threads
</strong> function returns a list of the threads
35 within
<var>task
</var>. The calling
36 task or thread also receives a send right to the kernel port
37 for each listed thread.
38 <h3>RETURN VALUES
</h3>
40 Only generic errors apply.
41 <h3>RELATED INFORMATION
</h3>
44 <a href=
"thread_create.html"><strong>thread_create
</strong></a>,
45 <a href=
"thread_terminate.html"><strong>thread_terminate
</strong></a>,
46 <a href=
"thread_suspend.html"><strong>thread_suspend
</strong></a>.