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

Method _bootstrap

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

Source from the content-addressed store, hash-verified

986 del self._target, self._args, self._kwargs
987
988 def _bootstrap(self):
989 # Wrapper around the real bootstrap code that ignores
990 # exceptions during interpreter cleanup. Those typically
991 # happen when a daemon thread wakes up at an unfortunate
992 # moment, finds the world around it destroyed, and raises some
993 # random exception *** while trying to report the exception in
994 # _bootstrap_inner() below ***. Those random exceptions
995 # don't help anybody, and they confuse users, so we suppress
996 # them. We suppress them only when it appears that the world
997 # indeed has already been destroyed, so that exceptions in
998 # _bootstrap_inner() during normal business hours are properly
999 # reported. Also, we only suppress them for daemonic threads;
1000 # if a non-daemonic encounters this, something else is wrong.
1001 try:
1002 self._bootstrap_inner()
1003 except:
1004 if self._daemonic and _sys is None:
1005 return
1006 raise
1007
1008 def _set_ident(self):
1009 self._ident = get_ident()

Callers

nothing calls this directly

Calls 1

_bootstrap_innerMethod · 0.95

Tested by

no test coverage detected