| 1389 | # Special thread class to represent the main thread |
| 1390 | |
| 1391 | class _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 |
no outgoing calls
no test coverage detected