Searched refs:import_lock_thread (Results 1 – 3 of 3) sorted by relevance
151 static unsigned long import_lock_thread = PYTHREAD_INVALID_THREAD_ID; variable165 if (import_lock_thread == me) { in _PyImport_AcquireLock()169 if (import_lock_thread != PYTHREAD_INVALID_THREAD_ID || in _PyImport_AcquireLock()177 import_lock_thread = me; in _PyImport_AcquireLock()187 if (import_lock_thread != me) in _PyImport_ReleaseLock()192 import_lock_thread = PYTHREAD_INVALID_THREAD_ID; in _PyImport_ReleaseLock()220 import_lock_thread = me; in _PyImport_ReInitLock()223 import_lock_thread = PYTHREAD_INVALID_THREAD_ID; in _PyImport_ReInitLock()240 return PyBool_FromLong(import_lock_thread != PYTHREAD_INVALID_THREAD_ID); in _imp_lock_held_impl()
288 static long import_lock_thread = -1; variable302 if (import_lock_thread == me) { in _PyImport_AcquireLock()306 if (import_lock_thread != -1 || !PyThread_acquire_lock(import_lock, 0)) in _PyImport_AcquireLock()312 import_lock_thread = me; in _PyImport_AcquireLock()322 if (import_lock_thread != me) in _PyImport_ReleaseLock()326 import_lock_thread = -1; in _PyImport_ReleaseLock()346 import_lock_thread = -1; in _PyImport_ReInitLock()356 return PyBool_FromLong(import_lock_thread != -1); in imp_lock_held()2214 if (import_lock_thread == -1 || import_lock_thread == me) { in PyImport_ImportModuleNoBlock()
58 import_lock_thread