Lines Matching refs:THREAD_WORK
31 thread->thd_status[THREAD_WORK] = MPP_THREAD_UNINITED; in mpp_thread_create()
53 thread->thd_status[THREAD_WORK], thread->thd_status[THREAD_INPUT], in mpp_thread_dump_status()
64 if (mpp_thread_get_status(thread, THREAD_WORK) == MPP_THREAD_UNINITED) { in mpp_thread_start()
65 mpp_thread_set_status(thread, MPP_THREAD_RUNNING, THREAD_WORK); in mpp_thread_start()
74 mpp_thread_set_status(thread, MPP_THREAD_UNINITED, THREAD_WORK); in mpp_thread_start()
83 if (mpp_thread_get_status(thread, THREAD_WORK) != MPP_THREAD_UNINITED) { in mpp_thread_stop()
86 mpp_thread_lock(thread, THREAD_WORK); in mpp_thread_stop()
87 mpp_thread_set_status(thread, MPP_THREAD_STOPPING, THREAD_WORK); in mpp_thread_stop()
90 mpp_thread_signal(thread, THREAD_WORK); in mpp_thread_stop()
91 mpp_thread_unlock(thread, THREAD_WORK); in mpp_thread_stop()
96 mpp_thread_set_status(thread, MPP_THREAD_UNINITED, THREAD_WORK); in mpp_thread_stop()