Lines Matching full:acquire
85 self.acquire = self._semlock.acquire
221 self.acquire = self._lock.acquire
234 'must acquire() condition before using wait()'
246 self._wait_semaphore.acquire(True, timeout)
253 self._lock.acquire()
257 assert not self._wait_semaphore.acquire(False)
261 while self._woken_count.acquire(False):
262 res = self._sleeping_count.acquire(False)
265 if self._sleeping_count.acquire(False): # try grabbing a sleeper
267 self._woken_count.acquire() # wait for the sleeper to wake
270 self._wait_semaphore.acquire(False)
274 assert not self._wait_semaphore.acquire(False)
278 while self._woken_count.acquire(False):
279 res = self._sleeping_count.acquire(False)
283 while self._sleeping_count.acquire(False):
289 self._woken_count.acquire() # wait for a sleeper to wake
292 while self._wait_semaphore.acquire(False):
306 self._cond.acquire()
308 if self._flag.acquire(False):
316 self._cond.acquire()
318 self._flag.acquire(False)
325 self._cond.acquire()
327 self._flag.acquire(False)
332 self._cond.acquire()
334 if self._flag.acquire(False):
339 if self._flag.acquire(False):