Searched refs:import_lock (Results 1 – 3 of 3) sorted by relevance
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 …]
259 static PyThread_type_lock import_lock = 0; variable269 if (import_lock == NULL) { in _PyImport_AcquireLock()270 import_lock = PyThread_allocate_lock(); in _PyImport_AcquireLock()271 if (import_lock == NULL) in _PyImport_AcquireLock()278 if (import_lock_thread != -1 || !PyThread_acquire_lock(import_lock, 0)) in _PyImport_AcquireLock()281 PyThread_acquire_lock(import_lock, 1); in _PyImport_AcquireLock()292 if (me == -1 || import_lock == NULL) in _PyImport_ReleaseLock()299 PyThread_release_lock(import_lock); in _PyImport_ReleaseLock()312 if (import_lock != NULL) in _PyImport_ReInitLock()313 import_lock = PyThread_allocate_lock(); in _PyImport_ReInitLock()