Home | History | Annotate | Download | only in futures.unique_future

Lines Matching refs:WorkerThreadState

25 enum class WorkerThreadState { Uninitialized, AllowedToRun, Exiting };
28 std::atomic<WorkerThreadState> thread_state(WorkerThreadState::Uninitialized);
30 void set_worker_thread_state(WorkerThreadState state)
35 void wait_for_worker_thread_state(WorkerThreadState state)
42 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun);
44 set_worker_thread_state(WorkerThreadState::Exiting);
51 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun);
54 set_worker_thread_state(WorkerThreadState::Exiting);
59 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun);
61 set_worker_thread_state(WorkerThreadState::Exiting);
77 set_worker_thread_state(WorkerThreadState::AllowedToRun);
78 wait_for_worker_thread_state(WorkerThreadState::Exiting);
98 set_worker_thread_state(WorkerThreadState::AllowedToRun);
99 wait_for_worker_thread_state(WorkerThreadState::Exiting);
119 set_worker_thread_state(WorkerThreadState::AllowedToRun);
120 wait_for_worker_thread_state(WorkerThreadState::Exiting);