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

Class _MainThread

Lib/threading.py:1384–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382# Special thread class to represent the main thread
1383
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 2

threading.pyFile · 0.85
_after_forkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…