Lines Matching refs:state
204 def _acquire_restore(self, state):
206 self._count, self._owner = state
274 self._lock.release() # No state to save
277 self._lock.acquire() # Ignore saved state
318 try: # restore state no matter what (e.g., KeyboardInterrupt)
634 # since the previous cycle. In addition, a 'resetting' state exists which is
636 # and a 'broken' state in which all threads get the exception.
703 #see if the barrier is in a broken state
714 # enter draining state
743 """Reset the barrier to the initial state.
755 #was broken, set it to reset state
763 """Place the barrier into a 'broken' state.
774 # a broken state all parties awakened.
787 # anyway. It returns the correct value in the steady state.
794 """Return True if the barrier is in a broken state."""
909 # they may be in an invalid state leading to a deadlock or crash.
1011 the underlying thread state (see pystate.h) gets deleted.
1119 # Issue #18808: wait for the thread state to be gone.
1536 Wait until the Python thread state of all non-daemon threads get deleted.
1558 # The main thread isn't finished yet, so its thread state lock can't
1609 Cleanup threading module state that should not exist after a fork.
1641 # invalid state, so we reinitialize them.