Lines Matching defs:lock
96 /* The main thread always holds this lock. It is only released when
662 /* The main thread should always hold the cancel_event lock */
1099 PyThread_type_lock lock;
1103 lock = PyThread_allocate_lock();
1104 if (lock == NULL)
1107 PyThread_acquire_lock(lock, WAIT_LOCK);
1109 thread = PyThread_start_new_thread(faulthandler_fatal_error_thread, lock);
1111 PyThread_free_lock(lock);
1118 PyThread_acquire_lock(lock, WAIT_LOCK);
1119 PyThread_release_lock(lock);
1120 PyThread_free_lock(lock);