task_assign.html   [plain text]

<strong>Function</strong> - Assign a task to a processor set.
<strong>kern_return_t   task_assign</strong>
                <strong>(task_t</strong>                                    <var>task</var>,
                 <strong>processor_set_t</strong>                  <var>processor_set</var>,
                 <strong>boolean_t</strong>                       <var>assign_threads</var><strong>);</strong>
<dt> <var>task</var> 
[in task send right]
The port for the task to be assigned.
<dt> <var>processor_set</var> 
[in processor-set-control send right]
The control port for the processor 
set into which the task is to be assigned.
<dt> <var>assign_threads</var> 
[in scalar]
True if this assignment should apply as well to the threads 
within the task.
The <strong>task_assign</strong> function assigns <var>task</var> to the set 
After the assignment is completed, newly created threads within this task
will be assigned to 
this processor set.  Any previous assignment of the task is nullified. 
If <var>assign_threads</var> is <strong>TRUE</strong>, existing threads within the task 
will also be assigned to the processor set.
Only generic errors apply.
<a href="task_assign_default.html"><strong>task_assign_default</strong></a>,
<a href="task_get_assignment.html"><strong>task_get_assignment</strong></a>,
<a href="processor_set_create.html"><strong>processor_set_create</strong></a>,
<a href="processor_set_info.html"><strong>processor_set_info</strong></a>,
<a href="thread_assign.html"><strong>thread_assign</strong></a>.