Lines Matching refs:num_waiters
190 void test_free_for_all(int num_waiters) { in test_free_for_all() argument
196 threads.CreateThreadsWithBarrier(num_waiters, in test_free_for_all()
207 assert(test_obj.get_count(COMPLETE) + test_obj.get_count(WAITED) == num_waiters - 1); in test_free_for_all()
211 void test_waiting_for_init(int num_waiters) { in test_waiting_for_init() argument
231 threads.CreateThreadsWithBarrier(num_waiters, in test_waiting_for_init()
242 assert(test_obj.get_count(COMPLETE) + test_obj.get_count(WAITED) == num_waiters); in test_waiting_for_init()
247 void test_aborted_init(int num_waiters) { in test_aborted_init() argument
262 threads.CreateThreadsWithBarrier(num_waiters, in test_aborted_init()
276 assert(test_obj.get_count(WAITED) + test_obj.get_count(COMPLETE) == num_waiters - 1); in test_aborted_init()
281 void test_completed_init(int num_waiters) { in test_completed_init() argument
291 threads.CreateThreadsWithBarrier(num_waiters, in test_completed_init()
300 assert(test_obj.get_count(COMPLETE) == num_waiters); in test_completed_init()