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

Method __init__

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

Source from the content-addressed store, hash-verified

1431class _DummyThread(Thread):
1432
1433 def __init__(self):
1434 Thread.__init__(self, name=_newname("Dummy-%d"),
1435 daemon=_daemon_threads_allowed())
1436 self._started.set()
1437 self._set_ident()
1438 self._os_thread_handle = _make_thread_handle(self._ident)
1439 if _HAVE_THREAD_NATIVE_ID:
1440 self._set_native_id()
1441 with _active_limbo_lock:
1442 _active[self._ident] = self
1443 _DeleteDummyThreadOnDel(self)
1444
1445 def is_alive(self):
1446 if not self._os_thread_handle.is_done() and self._started.is_set():

Callers

nothing calls this directly

Calls 6

_newnameFunction · 0.85
_set_identMethod · 0.80
_set_native_idMethod · 0.80
__init__Method · 0.45
setMethod · 0.45

Tested by

no test coverage detected