Lines Matching refs:_main_thread
1059 # Special case: _main_thread releases ._tstate_lock via this
1532 _main_thread = _MainThread()
1538 # Obscure: other threads may be waiting to join _main_thread. That's
1543 if _main_thread._is_stopped:
1556 if _main_thread.ident == get_ident():
1557 tlock = _main_thread._tstate_lock
1563 _main_thread._stop()
1567 # _main_thread is the thread which imported the threading module.
1568 # In this case, ignore _main_thread, similar behavior than for threads
1596 return _main_thread
1613 global _active_limbo_lock, _main_thread
1628 _main_thread = current