Searched refs:import_lock (Results 1 – 3 of 3) sorted by relevance
150 static PyThread_type_lock import_lock = 0; variable160 if (import_lock == NULL) { in _PyImport_AcquireLock()161 import_lock = PyThread_allocate_lock(); in _PyImport_AcquireLock()162 if (import_lock == NULL) in _PyImport_AcquireLock()170 !PyThread_acquire_lock(import_lock, 0)) in _PyImport_AcquireLock()173 PyThread_acquire_lock(import_lock, 1); in _PyImport_AcquireLock()185 if (me == PYTHREAD_INVALID_THREAD_ID || import_lock == NULL) in _PyImport_ReleaseLock()193 PyThread_release_lock(import_lock); in _PyImport_ReleaseLock()206 if (import_lock != NULL) { in _PyImport_ReInitLock()207 import_lock = PyThread_allocate_lock(); in _PyImport_ReInitLock()[all …]
287 static PyThread_type_lock import_lock = 0; variable297 if (import_lock == NULL) { in _PyImport_AcquireLock()298 import_lock = PyThread_allocate_lock(); in _PyImport_AcquireLock()299 if (import_lock == NULL) in _PyImport_AcquireLock()306 if (import_lock_thread != -1 || !PyThread_acquire_lock(import_lock, 0)) in _PyImport_AcquireLock()309 PyThread_acquire_lock(import_lock, 1); in _PyImport_AcquireLock()320 if (me == -1 || import_lock == NULL) in _PyImport_ReleaseLock()327 PyThread_release_lock(import_lock); in _PyImport_ReleaseLock()340 if (import_lock != NULL) { in _PyImport_ReInitLock()341 import_lock = PyThread_allocate_lock(); in _PyImport_ReInitLock()[all …]
56 import_lock