MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _bootstrap_inner

Method _bootstrap_inner

tools/python-3.11.9-amd64/Lib/threading.py:1028–1049  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1026 _shutdown_locks.add(self._tstate_lock)
1027
1028 def _bootstrap_inner(self):
1029 try:
1030 self._set_ident()
1031 self._set_tstate_lock()
1032 if _HAVE_THREAD_NATIVE_ID:
1033 self._set_native_id()
1034 self._started.set()
1035 with _active_limbo_lock:
1036 _active[self._ident] = self
1037 del _limbo[self]
1038
1039 if _trace_hook:
1040 _sys.settrace(_trace_hook)
1041 if _profile_hook:
1042 _sys.setprofile(_profile_hook)
1043
1044 try:
1045 self.run()
1046 except:
1047 self._invoke_excepthook(self)
1048 finally:
1049 self._delete()
1050
1051 def _stop(self):
1052 # After calling ._stop(), .is_alive() returns False and .join() returns

Callers 1

_bootstrapMethod · 0.95

Calls 6

_set_identMethod · 0.95
_set_tstate_lockMethod · 0.95
_set_native_idMethod · 0.95
runMethod · 0.95
_deleteMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected