Lines Matching refs:WorkerThreadState
28 enum class WorkerThreadState { Uninitialized, AllowedToRun, Exiting }; enum
31 std::atomic<WorkerThreadState> thread_state(WorkerThreadState::Uninitialized);
33 void set_worker_thread_state(WorkerThreadState state) in set_worker_thread_state()
38 void wait_for_worker_thread_state(WorkerThreadState state) in wait_for_worker_thread_state()
46 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func1()
48 set_worker_thread_state(WorkerThreadState::Exiting); in func1()
55 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func3()
58 set_worker_thread_state(WorkerThreadState::Exiting); in func3()
63 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func5()
65 set_worker_thread_state(WorkerThreadState::Exiting); in func5()
81 set_worker_thread_state(WorkerThreadState::AllowedToRun); in main()
82 wait_for_worker_thread_state(WorkerThreadState::Exiting); in main()
99 set_worker_thread_state(WorkerThreadState::AllowedToRun); in main()
100 wait_for_worker_thread_state(WorkerThreadState::Exiting); in main()
117 set_worker_thread_state(WorkerThreadState::AllowedToRun); in main()
118 wait_for_worker_thread_state(WorkerThreadState::Exiting); in main()