Searched refs:import_lock (Results 1 – 3 of 3) sorted by relevance
113 static PyThread_type_lock import_lock = NULL; variable123 if (import_lock == NULL) { in _PyImport_AcquireLock()124 import_lock = PyThread_allocate_lock(); in _PyImport_AcquireLock()125 if (import_lock == NULL) in _PyImport_AcquireLock()133 !PyThread_acquire_lock(import_lock, 0)) in _PyImport_AcquireLock()136 PyThread_acquire_lock(import_lock, WAIT_LOCK); in _PyImport_AcquireLock()148 if (me == PYTHREAD_INVALID_THREAD_ID || import_lock == NULL) in _PyImport_ReleaseLock()156 PyThread_release_lock(import_lock); in _PyImport_ReleaseLock()169 if (import_lock != NULL) { in _PyImport_ReInitLock()170 if (_PyThread_at_fork_reinit(&import_lock) < 0) { in _PyImport_ReInitLock()[all …]
73 Python/import.c:import_lock static PyThread_type_lock import_l…
2124 Python/import.c - import_lock -