Lines Matching refs:acquire
50 signalled_all.acquire()
52 signalled_all.acquire()
99 lock.acquire()
102 self.assertRaises(KeyboardInterrupt, lock.acquire, timeout=5)
105 # We want to assert that lock.acquire() was interrupted because
107 # after timeout return of lock.acquire() (which can fool assertRaises).
133 rlock.acquire()
137 # Wait until we can't acquire it without blocking...
138 while rlock.acquire(blocking=False):
143 self.assertRaises(KeyboardInterrupt, rlock.acquire, timeout=5)
161 lock.acquire()
162 # Wait until the main thread is blocked in the lock acquire, and
173 # Wait until we can't acquire it without blocking...
174 while lock.acquire(blocking=False):
177 result = lock.acquire() # Block while we receive a signal.
192 # acquire in the main thread, and make sure that the lock acquire times
195 # to the main thread. Otherwise lock.acquire() itself doesn't get
201 done.acquire()
203 lock.acquire()
210 lock.acquire(timeout=0.5)
224 done.acquire()