1 //! This module corresponds to `mach/thread_act.defs`. 2 3 use kern_return::kern_return_t; 4 use mach_types::thread_act_t; 5 use message::mach_msg_type_number_t; 6 use thread_status::{thread_state_flavor_t, thread_state_t}; 7 8 extern "C" { thread_get_state( target_act: thread_act_t, flavor: thread_state_flavor_t, new_state: thread_state_t, new_state_count: *mut mach_msg_type_number_t, ) -> kern_return_t9 pub fn thread_get_state( 10 target_act: thread_act_t, 11 flavor: thread_state_flavor_t, 12 new_state: thread_state_t, 13 new_state_count: *mut mach_msg_type_number_t, 14 ) -> kern_return_t; 15 } 16 17 extern "C" { thread_suspend(target_act: thread_act_t) -> kern_return_t18 pub fn thread_suspend(target_act: thread_act_t) -> kern_return_t; 19 } 20 21 extern "C" { thread_resume(target_act: thread_act_t) -> kern_return_t22 pub fn thread_resume(target_act: thread_act_t) -> kern_return_t; 23 } 24