Home
last modified time | relevance | path

Searched refs:import_lock_thread (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Python/
Dimport.c151 static unsigned long import_lock_thread = PYTHREAD_INVALID_THREAD_ID; variable
165 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()
/external/python/cpython2/Python/
Dimport.c288 static long import_lock_thread = -1; variable
302 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()
/external/python/cpython3/Tools/c-globals/
Dignored-globals.txt58 import_lock_thread