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

Method __init__

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

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 5

_set_native_idMethod · 0.80
_get_main_thread_identFunction · 0.70
_make_thread_handleFunction · 0.70
__init__Method · 0.45
setMethod · 0.45

Tested by

no test coverage detected