Function - Return the execution state for a thread.
kern_return_t thread_get_state (thread_act_t target_thread, thread_state_flavor_t flavor, thread_state_t old_state, mach_msg_type_number_t old_state_count);
The thread_get_state function returns the execution state (for example, the machine registers) for target_thread. flavor specifies the type of state information returned.
The format of the data returned is machine specific; it is defined in
\*L
Only generic errors apply.
Functions:
task_info,
thread_info,
thread_set_state.
RETURN VALUES
RELATED INFORMATION