Lines Matching full:acquire
47 signalled_all.acquire()
49 signalled_all.acquire()
96 lock.acquire()
99 self.assertRaises(KeyboardInterrupt, lock.acquire, timeout=5)
102 # We want to assert that lock.acquire() was interrupted because
104 # after timeout return of lock.acquire() (which can fool assertRaises).
130 rlock.acquire()
134 # Wait until we can't acquire it without blocking...
135 while rlock.acquire(blocking=False):
140 self.assertRaises(KeyboardInterrupt, rlock.acquire, timeout=5)
156 # Acquire the lock in a non-main thread, so this test works for
158 lock.acquire()
159 # Wait until the main thread is blocked in the lock acquire, and
170 # Wait until we can't acquire it without blocking...
171 while lock.acquire(blocking=False):
174 result = lock.acquire() # Block while we receive a signal.
189 # acquire in the main thread, and make sure that the lock acquire times
192 # to the main thread. Otherwise lock.acquire() itself doesn't get
198 done.acquire()
200 lock.acquire()
207 lock.acquire(timeout=0.5)
221 done.acquire()