Lines Matching defs:release
95 without blocking; the thread must release it once for each time it has
108 again without blocking; the thread must release it once for each time it
176 def release(self):
193 raise RuntimeError("cannot release un-acquired lock")
197 self._block.release()
200 self.release()
210 raise RuntimeError("cannot release un-acquired lock")
215 self._block.release()
240 # Export the lock's acquire() and release() methods
242 self.release = lock.release
245 # release() and acquire() on the lock). Ditto for _is_owned().
274 self._lock.release() # No state to save
283 self._lock.release()
304 release() method, since this may not actually unlock the lock when it
375 waiter.release()
413 Semaphores manage a counter representing the number of release() calls minus
438 on entry, block, waiting until some other thread has called release() to
440 if multiple acquire() calls are blocked, release() will wake exactly one
480 def release(self, n=1):
495 self.release()
509 the number of release() calls minus the number of acquire() calls, plus an
524 def release(self, n=1):
686 # We release the barrier
708 # Optionally run the 'action' and release the threads waiting
1133 lock.release()
1139 # lock.release(). It can happen if a signal handler raises an
1141 lock.release()
1539 # dubious, but some code does it. We can't wait for C code to release
1541 # is nearly dead. So we release it here. Note that just calling _stop()
1562 tlock.release()
1584 lock.release()