Lines Matching full:threads

10 // UNSUPPORTED: no-threads
30 // ThreadsPerTest - The number of threads used
163 threads.emplace_back(std::forward<Args>(args)...); in Create()
179 for (auto& t : threads) { in JoinAll()
185 std::vector<std::thread> threads; member
193 ThreadGroup threads; in test_free_for_all() local
196 threads.CreateThreadsWithBarrier(num_waiters, in test_free_for_all()
203 // wait for the other threads to finish initialization. in test_free_for_all()
204 threads.JoinAll(); in test_free_for_all()
214 ThreadGroup threads; in test_waiting_for_init() local
217 threads.Create(test_obj.access_callback( in test_waiting_for_init()
222 // There's a race condition between the other threads reaching the in test_waiting_for_init()
225 // threads to enter the waiting loop as possible. in test_waiting_for_init()
231 threads.CreateThreadsWithBarrier(num_waiters, in test_waiting_for_init()
237 // wait for the other threads to finish initialization. in test_waiting_for_init()
238 threads.JoinAll(); in test_waiting_for_init()
251 ThreadGroup threads; in test_aborted_init() local
252 threads.Create(test_obj.access_callback( in test_aborted_init()
262 threads.CreateThreadsWithBarrier(num_waiters, in test_aborted_init()
271 // wait for the other threads to finish initialization. in test_aborted_init()
272 threads.JoinAll(); in test_aborted_init()
290 ThreadGroup threads; in test_completed_init() local
291 threads.CreateThreadsWithBarrier(num_waiters, in test_completed_init()
294 // wait for the other threads to finish initialization. in test_completed_init()
295 threads.JoinAll(); in test_completed_init()
380 // Test each multi-threaded implementation with real threads. in main()