Lines Matching refs:thread
24 #define RT_COMPLETION_NEW_STAT(thread, flag) (((flag) & 1) | (((rt_base_t)thread) & ~1)) argument
50 rt_thread_t thread, rt_int32_t timeout,
87 rt_thread_t thread; in rt_completion_wait_flags_noisr() local
95 thread = rt_thread_self(); in rt_completion_wait_flags_noisr()
137 result = _comp_susp_thread(completion, thread, timeout, in rt_completion_wait_flags_noisr()
207 rt_thread_t thread, rt_int32_t timeout, in _comp_susp_thread() argument
218 thread->error = RT_EOK; in _comp_susp_thread()
220 error = rt_thread_suspend_with_flag(thread, suspend_flag); in _comp_susp_thread()
233 comp_waiting = RT_COMPLETION_NEW_STAT(thread, RT_UNCOMPLETED); in _comp_susp_thread()
246 rt_timer_control(&(thread->thread_timer), in _comp_susp_thread()
249 rt_timer_start(&(thread->thread_timer)); in _comp_susp_thread()
258 error = thread->error; in _comp_susp_thread()