Lines Matching refs:locked
97 // The leaf mutexes can be locked under any other non-leaf mutex,
98 // but no other mutex can be locked while under a leaf mutex.
100 // Multiple mutexes of this type can be locked at the same time.
116 // The table fixes what mutexes can be locked under what mutexes.
118 // then Bar mutex can be locked while under Foo mutex.
178 bool locked = (state & (kWriterLock | kReaderLockMask)) != 0;
179 if (LIKELY(!locked)) {
180 // The mutex is not read-/write-locked, try to lock.
198 if (LIKELY(!locked))
199 return; // We've locked the mutex.
222 // The mutex is not read-/write-locked, try to lock.
264 bool locked = (state & kWriterLock) != 0;
266 if (LIKELY(!locked)) {
282 if (LIKELY(!locked))
283 return; // We've locked the mutex.
319 // owns the mutex but a child checks that it is locked. Rather than
339 // if non zero, the mutex is read-locked
341 // if not zero, the mutex is write-locked
343 // if non zero, the mutex is read- or write-locked
346 // if set, the mutex is write-locked