Searched refs:WorkerThreadState (Results 1 – 2 of 2) sorted by relevance
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()48 set_worker_thread_state(WorkerThreadState::Exiting); in func1()58 set_worker_thread_state(WorkerThreadState::Exiting); in func3()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()[all …]
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()48 set_worker_thread_state(WorkerThreadState::Exiting); in func1()58 set_worker_thread_state(WorkerThreadState::Exiting); in func3()65 set_worker_thread_state(WorkerThreadState::Exiting); in func5()82 set_worker_thread_state(WorkerThreadState::AllowedToRun); in main()83 wait_for_worker_thread_state(WorkerThreadState::Exiting); in main()100 set_worker_thread_state(WorkerThreadState::AllowedToRun); in main()101 wait_for_worker_thread_state(WorkerThreadState::Exiting); in main()[all …]