Set a lock object which will be released by the interpreter when the underlying thread state (see pystate.h) gets deleted.
(self)
| 1013 | self._native_id = get_native_id() |
| 1014 | |
| 1015 | def _set_tstate_lock(self): |
| 1016 | """ |
| 1017 | Set a lock object which will be released by the interpreter when |
| 1018 | the underlying thread state (see pystate.h) gets deleted. |
| 1019 | """ |
| 1020 | self._tstate_lock = _set_sentinel() |
| 1021 | self._tstate_lock.acquire() |
| 1022 | |
| 1023 | if not self.daemon: |
| 1024 | with _shutdown_locks_lock: |
| 1025 | _maintain_shutdown_locks() |
| 1026 | _shutdown_locks.add(self._tstate_lock) |
| 1027 | |
| 1028 | def _bootstrap_inner(self): |
| 1029 | try: |
no test coverage detected