Lines Matching refs:locked
28 by a particular coroutine when locked. A primitive lock is in one
29 of two states, 'locked' or 'unlocked'.
33 changes the state to locked and returns immediately. When the
34 state is locked, acquire() blocks until a call to release() in
36 resets it to locked and returns. The release() method should only
37 be called in the locked state; it changes the state to unlocked
70 if not lock.locked():
84 extra = 'locked' if self._locked else 'unlocked'
89 def locked(self):
97 locked and returns True.
128 When the lock is locked, reset it to unlocked, and return.
234 # Export the lock's locked(), acquire() and release() methods.
235 self.locked = lock.locked
243 extra = 'locked' if self.locked() else 'unlocked'
259 if not self.locked():
310 if not self.locked():
354 extra = 'locked' if self.locked() else f'unlocked, value:{self._value}'
359 def locked(self):
373 if not self.locked():