Home
last modified time | relevance | path

Searched refs:WorkerThreadState (Results 1 – 2 of 2) sorted by relevance

/external/libcxx/test/std/thread/futures/futures.unique_future/
Dwait_until.pass.cpp25 enum class WorkerThreadState { Uninitialized, AllowedToRun, Exiting }; enum
28 std::atomic<WorkerThreadState> thread_state(WorkerThreadState::Uninitialized);
30 void set_worker_thread_state(WorkerThreadState state) in set_worker_thread_state()
35 void wait_for_worker_thread_state(WorkerThreadState state) in wait_for_worker_thread_state()
42 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func1()
44 set_worker_thread_state(WorkerThreadState::Exiting); in func1()
51 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func3()
54 set_worker_thread_state(WorkerThreadState::Exiting); in func3()
59 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func5()
61 set_worker_thread_state(WorkerThreadState::Exiting); in func5()
[all …]
/external/libcxx/test/std/thread/futures/futures.shared_future/
Dwait_until.pass.cpp25 enum class WorkerThreadState { Uninitialized, AllowedToRun, Exiting }; enum
28 std::atomic<WorkerThreadState> thread_state(WorkerThreadState::Uninitialized);
30 void set_worker_thread_state(WorkerThreadState state) in set_worker_thread_state()
35 void wait_for_worker_thread_state(WorkerThreadState state) in wait_for_worker_thread_state()
42 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func1()
44 set_worker_thread_state(WorkerThreadState::Exiting); in func1()
51 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func3()
54 set_worker_thread_state(WorkerThreadState::Exiting); in func3()
59 wait_for_worker_thread_state(WorkerThreadState::AllowedToRun); in func5()
61 set_worker_thread_state(WorkerThreadState::Exiting); in func5()
[all …]