Home | History | Annotate | Download | only in Python

Lines Matching full:import_lock

149 static PyThread_type_lock import_lock = 0;
159 if (import_lock == NULL) {
160 import_lock = PyThread_allocate_lock();
161 if (import_lock == NULL)
168 if (import_lock_thread != -1 || !PyThread_acquire_lock(import_lock, 0))
171 PyThread_acquire_lock(import_lock, 1);
183 if (me == -1 || import_lock == NULL)
191 PyThread_release_lock(import_lock);
204 if (import_lock != NULL) {
205 import_lock = PyThread_allocate_lock();
206 if (import_lock == NULL) {
217 PyThread_acquire_lock(import_lock, NOWAIT_LOCK);
295 if (import_lock != NULL) {
296 PyThread_free_lock(import_lock);
297 import_lock = NULL;