thread_newstate
thread_newstate(ti, TI_CLIENT_CALL);
thread_newstate(ti, TI_DOOR_RETURN);
thread_newstate(ti, TI_DOOR_RETURN);
void thread_newstate(thread_info_t *, thread_state_t);
thread_newstate(ti, TI_DOOR_RETURN);
thread_newstate(ti, TI_MAIN_DOOR_CALL);