Lines Matching full:lock
64 // 2. MU.Lock() b. MU.Lock()
77 MU.Lock();
89 MU.Lock();
357 mu.Lock();
410 ReaderLockScoped lock(&mu); // Reader lock for writing. -- bug.
415 WriterLockScoped lock(&mu);
426 printf("test122: positive (rw-lock)\n");
442 // test125 TN: Backwards lock (annotated). {{{1
445 // We take a *reader* lock when writing to a per-thread data
446 // (GLOB[thread_num]) and we take a *writer* lock when we
452 // to this particular lock by using ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&mu).
465 ReaderLockScoped lock(&mu);
472 WriterLockScoped lock(&mu);
657 // Worker2 tries to write to globals twice: without a writer lock and with it.
658 // Worker3 tries to read from globals twice: without a reader lock and with it.
670 MU.Lock();
896 mu.Lock();
917 sl.Lock();
1019 void Lock() {
1026 void LockOrUnlockInternal(bool lock) {
1028 while (lockf(fd_, lock ? F_LOCK : F_ULOCK, 0) < 0) {
1046 mu.Lock();
1129 // Test that reader lock/unlock do not create a hb-arc.