Lines Matching refs:acquire
94 thread has acquired a reentrant lock, the same thread may acquire it again
107 thread has acquired a reentrant lock, the same thread may acquire it
138 def acquire(self, blocking=True, timeout=-1):
168 rc = self._block.acquire(blocking, timeout)
174 __enter__ = acquire
205 self._block.acquire()
240 # Export the lock's acquire() and release() methods
241 self.acquire = lock.acquire
245 # release() and acquire() on the lock). Ditto for _is_owned().
277 self._lock.acquire() # Ignore saved state
282 if self._lock.acquire(False):
314 waiter.acquire()
320 waiter.acquire()
324 gotit = waiter.acquire(True, timeout)
326 gotit = waiter.acquire(False)
414 the number of acquire() calls, plus an initial value. The acquire() method
433 def acquire(self, blocking=True, timeout=None):
440 if multiple acquire() calls are blocked, release() will wake exactly one
453 most timeout seconds. If acquire does not complete successfully in
458 raise ValueError("can't specify timeout for non-blocking acquire")
478 __enter__ = acquire
509 the number of release() calls minus the number of acquire() calls, plus an
510 initial value. The acquire() method blocks if necessary until it can return
917 self._tstate_lock.acquire()
1014 self._tstate_lock.acquire()
1077 # could try to acquire the lock again in the same thread, (in
1122 # This method passes its arguments to _tstate_lock.acquire().
1132 if lock.acquire(block, timeout):
1137 # bpo-45274: lock.acquire() acquired the lock, but the function
1583 lock.acquire()