MCPcopy Index your code
hub / github.com/python/cpython / _bootstrap_inner

Method _bootstrap_inner

Lib/threading.py:1058–1079  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1056 pass
1057
1058 def _bootstrap_inner(self):
1059 try:
1060 self._set_ident()
1061 if _HAVE_THREAD_NATIVE_ID:
1062 self._set_native_id()
1063 self._set_os_name()
1064 self._started.set()
1065 with _active_limbo_lock:
1066 _active[self._ident] = self
1067 del _limbo[self]
1068
1069 if _trace_hook:
1070 _sys.settrace(_trace_hook)
1071 if _profile_hook:
1072 _sys.setprofile(_profile_hook)
1073
1074 try:
1075 self._context.run(self.run)
1076 except:
1077 self._invoke_excepthook(self)
1078 finally:
1079 self._delete()
1080
1081 def _delete(self):
1082 "Remove current thread from the dict of currently running threads."

Callers 1

_bootstrapMethod · 0.95

Calls 6

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

Tested by

no test coverage detected