Lines Matching defs:lock
15 #include <lock.h>
29 * a "read" lock before initiating a wait, and an unblocker acquires a "write"
30 * lock. That way, unblockers can be sure that no waiters will start waiting
38 rw_lock lock;
72 rw_lock lock;
189 kprintf(" lock: %p\n", &entry->lock);
210 sSharedUserMutexContext.lock = RW_LOCK_INITIALIZER("shared user mutex table");
239 context->lock = RW_LOCK_INITIALIZER("user mutex table");
268 tableReadLocker.SetTo(context->lock, false);
278 WriteLocker tableWriteLocker(context->lock);
292 rw_lock_init(&entry->lock, "UserMutexEntry lock");
310 WriteLocker tableWriteLocker(context->lock);
312 // Was it removed & deleted while we were waiting for the lock?
323 rw_lock_destroy(&entry->lock);
343 ASSERT_READ_LOCKED_RW_LOCK(&entry->lock);
351 rw_lock_read_unlock(&entry->lock);
352 rw_lock_write_lock(&entry->lock);
355 rw_lock_write_unlock(&entry->lock);
356 rw_lock_read_lock(&entry->lock);
376 WriteLocker writeLocker(entry->lock);
388 WriteLocker entryLocker(entry->lock);
439 WriteLocker entryLocker(entry->lock);
526 // get the lock
533 ReadLocker entryLocker(entry->lock);
555 // unlock the first mutex and lock the second one
566 ReadLocker entryLocker(toEntry->lock);
621 // In the case where there is no entry, we must hold the read lock until we
623 ReadLocker tableReadLocker(context->lock);
673 ReadLocker entryLocker(entry->lock);