1 <h2>thread_set_state
</h2>
4 <strong>Function
</strong> - Set the target thread's user-mode execution state.
7 <strong>kern_return_t thread_set_state
</strong>
8 <strong>(thread_act_t
</strong> <var>target_thread
</var>,
9 <strong>thread_state_flavor_t
</strong> <var>flavor
</var>,
10 <strong>thread_state_t
</strong> <var>new_state
</var>,
11 <strong>target_thread
</strong> <var>new_state_count
</var><strong>);
</strong>
16 <dt> <var>target_thread
</var>
18 [in thread send right]
19 The thread for which to set the execution state.
20 The calling thread cannot specify itself.
22 <dt> <var>flavor
</var>
25 The type of state to set. Valid values correspond to
26 supported machine architecture features.
28 <dt> <var>new_state
</var>
30 [pointer to in structure]
31 State information for the specified thread.
33 <dt> <var>new_state_count
</var>
36 The size of the buffer (in natural-sized units).
40 The
<strong>thread_set_state
</strong> function sets the execution state
42 machine registers) for
<var>target_thread
</var>.
<var>flavor
</var> specifies the type
45 The format of the state to set is machine specific; it is defined in
46 <strong>mach/thread_status.h
</strong>.
47 <h3>RETURN VALUES
</h3>
49 Only generic errors apply.
50 <h3>RELATED INFORMATION
</h3>
53 <a href=
"task_info.html"><strong>task_info
</strong></a>,
54 <a href=
"thread_get_state.html"><strong>thread_get_state
</strong></a>,
55 <a href=
"thread_info.html"><strong>thread_info
</strong></a>.