Lines Matching refs:import_lock
287 static PyThread_type_lock import_lock = 0; variable
297 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()
342 if (import_lock == NULL) { in _PyImport_ReInitLock()