Lines Matching refs:wait
24 # A crude wait/yield function not relying on synchronization primitives.
204 # Just a sanity test that it didn't actually wait for the timeout.
387 results1.append(evt.wait())
388 results2.append(evt.wait())
412 results1.append(evt.wait(0.0))
414 r = evt.wait(0.5)
432 # Issue #13502: check that wait() returns true even when the event is
439 results.append(evt.wait(timeout * 4))
491 self.assertRaises(RuntimeError, cond.wait)
517 result = cond.wait()
522 result = cond.wait()
527 # first wait, to ensure all workers settle into cond.wait() before
543 # make sure all awaken workers settle into cond.wait()
546 # Notify 5 threads: they might be in their first or second wait
556 # make sure all workers settle into cond.wait()
559 # Notify all threads: they are all in their second wait
584 result = cond.wait(0.5)
593 # a wait() may succeed even if no one notifies us and before any
864 self.barrier.wait()
867 self.barrier.wait()
888 test the return value from barrier.wait
892 r = self.barrier.wait()
907 barrier.wait()
920 i = self.barrier.wait()
923 self.barrier.wait()
944 i = self.barrier.wait()
952 self.barrier.wait()
957 self.barrier.wait()
976 i = self.barrier.wait()
979 self.barrier.wait()
989 if barrier2.wait() == self.N//2:
991 barrier2.wait()
992 self.barrier.wait()
1002 Test wait(timeout)
1005 i = self.barrier.wait()
1011 self.barrier.wait, 0.5)
1021 i = barrier.wait()
1025 self.assertRaises(threading.BrokenBarrierError, barrier.wait)
1030 b.wait()
1031 b.wait()
1037 b.wait(3)
1042 b.wait(3)