thread_set_state.html   [plain text]

<strong>Function</strong> - Set the target thread's user-mode execution state.
<strong>kern_return_t   thread_set_state</strong>
                <strong>(thread_act_t</strong>                     <var>target_thread</var>,
                 <strong>thread_state_flavor_t</strong>                   <var>flavor</var>,
                 <strong>thread_state_t</strong>                       <var>new_state</var>,
                 <strong>target_thread</strong>                  <var>new_state_count</var><strong>);</strong>
<dt> <var>target_thread</var> 
[in thread send right]
The thread for which to set the execution state. 
The calling thread cannot specify itself.
<dt> <var>flavor</var> 
[in scalar]
The type of state to set.  Valid values correspond to
supported machine architecture features.
<dt> <var>new_state</var> 
[pointer to in structure]
State information for the specified thread.
<dt> <var>new_state_count</var> 
[in scalar]
The size of the buffer (in natural-sized units).
The <strong>thread_set_state</strong> function sets the execution state
(for example, the
machine registers) for <var>target_thread</var>.  <var>flavor</var> specifies the type
of state to set.
The format of the state to set is machine specific; it is defined in
Only generic errors apply.
<a href="task_info.html"><strong>task_info</strong></a>,
<a href="thread_get_state.html"><strong>thread_get_state</strong></a>,
<a href="thread_info.html"><strong>thread_info</strong></a>.