sys_thread_change_state

Function sys_thread_change_state 

Source
pub fn sys_thread_change_state(
    target: ObjID,
    new_state: ExecutionState,
) -> Result<ExecutionState, TwzError>
Expand description

Change the thread’s state. If successful, returns the previous state.