macOS module

task_get_state

procedureforeignSource
task_get_state :: (
    task: task_t,
    flavor: thread_state_flavor_t,
    old_state: thread_state_t,
    old_stateCnt: *mach_msg_type_number_t
) -> kern_return_t #foreign

Parameters

task: task_t
old_state: thread_state_t
old_stateCnt: *mach_msg_type_number_t

Returns

See also