MCPcopy Index your code
hub / github.com/RustPython/RustPython / _MainThread

Class _MainThread

Lib/threading.py:1391–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1389# Special thread class to represent the main thread
1390
1391class _MainThread(Thread):
1392
1393 def __init__(self):
1394 Thread.__init__(self, name="MainThread", daemon=False)
1395 self._started.set()
1396 self._ident = _get_main_thread_ident()
1397 self._os_thread_handle = _make_thread_handle(self._ident)
1398 if _HAVE_THREAD_NATIVE_ID:
1399 self._set_native_id()
1400 with _active_limbo_lock:
1401 _active[self._ident] = self
1402
1403
1404# 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