Lines Matching refs:test_obj

191   FunctionLocalStatic<GuardType, Impl> test_obj;  in test_free_for_all()  local
197 test_obj.access_callback([&]() { in test_free_for_all()
206 assert(test_obj.get_count(PERFORMED) == 1); 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()
212 FunctionLocalStatic<GuardType, Impl> test_obj; in test_waiting_for_init() local
217 threads.Create(test_obj.access_callback( in test_waiting_for_init()
232 test_obj.access_callback([]() { assert(false); }) in test_waiting_for_init()
240 assert(test_obj.get_count(PERFORMED) == 1); in test_waiting_for_init()
241 assert(test_obj.get_count(ABORTED) == 0); in test_waiting_for_init()
242 assert(test_obj.get_count(COMPLETE) + test_obj.get_count(WAITED) == num_waiters); in test_waiting_for_init()
248 FunctionLocalStatic<GuardType, Impl> test_obj; in test_aborted_init() local
252 threads.Create(test_obj.access_callback( in test_aborted_init()
263 test_obj.access_callback([&]() { in test_aborted_init()
274 assert(test_obj.get_count(ABORTED) == 1); in test_aborted_init()
275 assert(test_obj.get_count(PERFORMED) == 1); in test_aborted_init()
276 assert(test_obj.get_count(WAITED) + test_obj.get_count(COMPLETE) == num_waiters - 1); in test_aborted_init()
283 FunctionLocalStatic<GuardType, Impl> test_obj; in test_completed_init() local
285 test_obj.access([]() {}); // initialize the object in test_completed_init()
286 assert(test_obj.num_waiting() == 0); in test_completed_init()
287 assert(test_obj.num_completed() == 1); in test_completed_init()
288 assert(test_obj.get_count(PERFORMED) == 1); in test_completed_init()
292 test_obj.access_callback([]() { assert(false); }) in test_completed_init()
297 assert(test_obj.get_count(ABORTED) == 0); in test_completed_init()
298 assert(test_obj.get_count(PERFORMED) == 1); in test_completed_init()
299 assert(test_obj.get_count(WAITED) == 0); in test_completed_init()
300 assert(test_obj.get_count(COMPLETE) == num_waiters); in test_completed_init()