(self)
Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
Set a lock object which will be released by the interpreter when the underlying thread state ( see pystate . h ) gets deleted .
def _set_tstate_lock(self):
        """
        Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
        """
        self._tstate_lock = _set_sentinel()
        self._tstate_lock.acquire()

        if not self.daemon:
            with _shutdown_locks_lock:
                _maintain_shutdown_locks()
                _shutdown_locks.add(self._tstate_lock)
def _set_tstate_lock ( self ) : self . _tstate_lock = _set_sentinel ( ) self . _tstate_lock . acquire ( ) if not self . daemon : with _shutdown_locks_lock : _maintain_shutdown_locks ( ) _shutdown_locks . add ( self . _tstate_lock )