Lines Matching refs:locked
47 char locked; /* for sanity checking */
66 if (self->locked)
185 self->locked = 1;
194 locked (even by the same thread), waiting for another thread to release\n\
203 /* Sanity check: the lock must be locked */
204 if (!self->locked) {
210 self->locked = 0;
219 the lock to acquire the lock. The lock must be in the locked state,\n\
220 but it needn't be locked by the same thread that unlocks it.");
225 return PyBool_FromLong((long)self->locked);
229 "locked() -> bool\n\
232 Return whether the lock is in the locked state.");
238 self->locked ? "locked" : "unlocked", Py_TYPE(self)->tp_name, self);
250 self->locked = 0;
268 {"locked", (PyCFunction)lock_locked_lock,
287 locked() -- test whether the lock is currently locked\n\
289 A lock is not owned by the thread that locked it; another thread may\n\
290 unlock it. A thread attempting to lock a lock that it has already locked\n\
425 the lock to acquire the lock. The lock must be in the locked state,\n\
426 and must be locked by the same thread that unlocks it; otherwise a\n\
529 self->rlock_count ? "locked" : "unlocked",
611 self->locked = 0;
1306 if (lock->locked) {
1308 lock->locked = 0;