Searched refs:_PyOS_IsMainThread (Results 1 – 5 of 5) sorted by relevance
21 PyAPI_FUNC(int) _PyOS_IsMainThread(void);
112 if (_PyOS_IsMainThread()) { in semlock_acquire()
1625 _PyOS_IsMainThread(void) in _PyOS_IsMainThread() function
1566 if (!wait_flag && _PyOS_IsMainThread()) { in _winapi_WaitForMultipleObjects_impl()
1851 if (ul_millis == 0 || !_PyOS_IsMainThread()) { in pysleep()