Lines Matching defs:locked
182 * -> a thread tries to lock a mutex it already has locked
183 * -> a thread tries to unlock a mutex locked by a different thread
188 * The pthread_lock struct implements a Python lock as a "locked?" bit
195 char locked; /* 0=unlocked, 1=locked */
196 /* a <cond, mutex> pair to handle an acquire of a locked lock */
584 lock->locked = 0;
650 if (thelock->locked == 0) {
660 /* mut must be locked by me -- part of the condition
681 if (intr_flag && status == 0 && thelock->locked) {
688 else if (status == 0 && !thelock->locked) {
693 if (success == PY_LOCK_ACQUIRED) thelock->locked = 1;
716 thelock->locked = 0;