Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dimport.c150 static long import_lock_thread = -1; variable
164 if (import_lock_thread == me) { in _PyImport_AcquireLock()
168 if (import_lock_thread != -1 || !PyThread_acquire_lock(import_lock, 0)) in _PyImport_AcquireLock()
175 import_lock_thread = me; in _PyImport_AcquireLock()
185 if (import_lock_thread != me) in _PyImport_ReleaseLock()
190 import_lock_thread = -1; in _PyImport_ReleaseLock()
218 import_lock_thread = me; in _PyImport_ReInitLock()
221 import_lock_thread = -1; in _PyImport_ReInitLock()
241 return PyBool_FromLong(import_lock_thread != -1); 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()
2192 if (import_lock_thread == -1 || import_lock_thread == me) { in PyImport_ImportModuleNoBlock()