| 1405 | # Special thread class to represent the main thread |
| 1406 | |
| 1407 | class _MainThread(Thread): |
| 1408 | |
| 1409 | def __init__(self): |
| 1410 | Thread.__init__(self, name="MainThread", daemon=False) |
| 1411 | self._set_tstate_lock() |
| 1412 | self._started.set() |
| 1413 | self._set_ident() |
| 1414 | if _HAVE_THREAD_NATIVE_ID: |
| 1415 | self._set_native_id() |
| 1416 | with _active_limbo_lock: |
| 1417 | _active[self._ident] = self |
| 1418 | |
| 1419 | |
| 1420 | # Dummy thread class to represent threads not started here. |
no outgoing calls
no test coverage detected