| 1382 | # Special thread class to represent the main thread |
| 1383 | |
| 1384 | class _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 |
no outgoing calls
no test coverage detected
searching dependent graphs…