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

Method __init__

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

Source from the content-addressed store, hash-verified

1384class _MainThread(Thread):
1385
1386 def __init__(self):
1387 Thread.__init__(self, name="MainThread", daemon=False)
1388 self._started.set()
1389 self._ident = _get_main_thread_ident()
1390 self._os_thread_handle = _make_thread_handle(self._ident)
1391 if _HAVE_THREAD_NATIVE_ID:
1392 self._set_native_id()
1393 with _active_limbo_lock:
1394 _active[self._ident] = self
1395
1396
1397# Helper thread-local instance to detect when a _DummyThread

Callers

nothing calls this directly

Calls 3

_set_native_idMethod · 0.80
__init__Method · 0.45
setMethod · 0.45

Tested by

no test coverage detected