Lines Matching refs:thread
56 rt_thread_t thread; in rt_wm_que_inc() local
64 thread = rt_thread_self(); in rt_wm_que_inc()
65 thread->error = RT_EOK; in rt_wm_que_inc()
66 rt_thread_suspend(thread); in rt_wm_que_inc()
67 rt_list_insert_after(&wg->suspended_threads, &RT_THREAD_LIST_NODE(thread)); in rt_wm_que_inc()
70 rt_timer_control(&(thread->thread_timer), in rt_wm_que_inc()
73 rt_timer_start(&(thread->thread_timer)); in rt_wm_que_inc()
77 if (thread->error != RT_EOK) in rt_wm_que_inc()
78 return thread->error; in rt_wm_que_inc()
117 rt_thread_t thread; in rt_wm_que_dec() local
119 thread = RT_THREAD_LIST_NODE_ENTRY(wg->suspended_threads.next); in rt_wm_que_dec()
120 rt_thread_resume(thread); in rt_wm_que_dec()