Lines Matching refs:MU

373 Mutex   MU;   variable
379 MU.Lock(); in Waker()
382 MU.Unlock(); in Waker()
390 MU.Lock(); in Waiter()
392 CV.Wait(&MU); in Waiter()
393 MU.Unlock(); in Waiter()
421 Mutex MU; variable
427 MU.Lock(); in Waker()
429 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Waker()
436 MU.LockWhen(Condition(&ArgIsOne, &COND)); // calls ANNOTATE_CONDVAR_WAIT in Waiter()
437 MU.Unlock(); // Waker is done! in Waiter()
503 Mutex MU; variable
507 MU.Lock(); in Waker()
510 MU.Unlock(); in Waker()
519 MU.Lock(); in Waiter()
521 CV.Wait(&MU); in Waiter()
522 MU.Unlock(); in Waiter()
555 Mutex MU; variable
559 MU.Lock(); in Waker()
562 MU.Unlock(); in Waker()
571 MU.Lock(); in Waiter()
573 CV.Wait(&MU); in Waiter()
574 ANNOTATE_CONDVAR_LOCK_WAIT(&CV, &MU); in Waiter()
576 MU.Unlock(); in Waiter()
607 Mutex MU; variable
610 MU.Lock(); in Signaller()
612 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Signaller()
620 MU.LockWhen(Condition(&ArgIsTrue, &COND)); // calls ANNOTATE_CONDVAR_WAIT in Waiter()
621 MU.Unlock(); // Signaller is done! in Waiter()
744 Mutex MU; variable
749 MU.Lock(); in Worker()
752 MU.Unlock(); in Worker()
761 MU.Lock(); in Parent()
763 CV.Wait(&MU); in Parent()
765 MU.Unlock(); in Parent()
799 Mutex MU; variable
802 MU.Lock(); in Putter()
804 MU.Unlock(); in Putter()
810 MU.Lock(); in Getter()
812 MU.Unlock(); in Getter()
847 Mutex MU; variable
850 MU.Lock(); in Waker()
852 MU.Unlock(); in Waker()
854 MU.Lock(); in Waker()
856 ANNOTATE_CONDVAR_SIGNAL(&MU); in Waker()
857 MU.Unlock(); in Waker()
861 MU.Lock(); in Waiter()
863 MU.Unlock(); in Waiter()
865 MU.LockWhen(Condition(&ArgIsOne, &COND)); in Waiter()
866 MU.Unlock(); in Waiter()
937 Mutex MU; variable
942 MU.Lock(); in Waker()
944 ANNOTATE_CONDVAR_SIGNAL(&MU); in Waker()
945 MU.Unlock(); in Waker()
949 MU.LockWhen(Condition(&ArgIsOne, &COND)); in Waiter()
950 MU.Unlock(); in Waiter()
989 Mutex MU; variable
993 MU.Lock(); in Worker()
995 MU.Unlock(); in Worker()
1023 Mutex MU; variable
1027 MU.Lock(); in Worker()
1029 MU.Unlock(); in Worker()
1056 Mutex MU; variable
1063 MU.Lock(); in Waker()
1065 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Waker()
1073 MU.Lock(); in Waiter()
1074 MU.Await(Condition(&ArgIsOne, &COND)); // calls ANNOTATE_CONDVAR_WAIT in Waiter()
1075 MU.Unlock(); // Waker is done! in Waiter()
1091 Mutex MU; variable
1096 MU.Lock(); in Waker()
1098 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Waker()
1106 MU.Lock(); in Waiter()
1107 CHECK(MU.AwaitWithTimeout(Condition(&ArgIsOne, &COND), INT_MAX)); in Waiter()
1108 MU.Unlock(); in Waiter()
1123 Mutex MU; variable
1135 MU.Lock(); in Waiter()
1136 CHECK(!MU.AwaitWithTimeout(Condition(&ArgIsOne, &COND), 100)); in Waiter()
1137 MU.Unlock(); in Waiter()
1155 Mutex MU; variable
1166 CHECK(!MU.LockWhenWithTimeout(Condition(&ArgIsOne, &COND), 100)); in Waiter()
1167 MU.Unlock(); in Waiter()
1184 Mutex MU; variable
1198 MU.Lock(); in Waiter()
1200 CV.WaitWithTimeout(&MU, ms_left_to_wait); in Waiter()
1203 MU.Unlock(); in Waiter()
1221 Mutex MU; variable
1225 if (MU.TryLock()) { in Worker_TryLock()
1227 MU.Unlock(); in Worker_TryLock()
1238 if (MU.ReaderTryLock()) { in Worker_ReaderTryLock()
1240 MU.ReaderUnlock(); in Worker_ReaderTryLock()
1250 MU.ReaderLock(); in Worker_ReaderLock()
1252 MU.ReaderUnlock(); in Worker_ReaderLock()
1259 MU.Lock(); in Worker_Lock()
1261 MU.Unlock(); in Worker_Lock()
1283 Mutex MU; variable
1290 MU.Lock(); in Waker()
1292 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Waker()
1299 MU.ReaderLockWhen(Condition(&ArgIsOne, &COND)); in Waiter()
1300 MU.ReaderUnlock(); in Waiter()
1315 Mutex MU; variable
1323 MU.Lock(); in Waker()
1325 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Waker()
1332 CHECK(MU.ReaderLockWhenWithTimeout(Condition(&ArgIsOne, &COND), INT_MAX)); in Waiter()
1333 MU.ReaderUnlock(); in Waiter()
1348 Mutex MU; variable
1360 CHECK(!MU.ReaderLockWhenWithTimeout(Condition(&ArgIsOne, &COND), 100)); in Waiter()
1361 MU.ReaderUnlock(); in Waiter()
1380 SpinLock MU; variable
1382 MU.Lock(); in Worker()
1384 MU.Unlock(); in Worker()
1413 Mutex MU; variable
1416 MU.Lock(); in Putter()
1418 MU.Unlock(); in Putter()
1422 MU.Lock(); in Putter()
1424 MU.Unlock(); in Putter()
1449 Mutex MU; variable
1453 MU.Lock(); in Putter()
1455 MU.Unlock(); in Putter()
1460 MU.Lock(); in Putter()
1462 MU.Unlock(); in Putter()
1634 Mutex MU; variable
1637 MU.Lock(); in Writer()
1639 MU.Unlock(); in Writer()
1644 MU.Lock(); in Reader()
1646 MU.Unlock(); in Reader()
1682 Mutex MU; variable
1685 MU.Lock(); in Worker()
1687 MU.Unlock(); in Worker()
1832 Mutex MU, MU1; variable
1835 MU.Lock(); in Putter()
1837 MU.Unlock(); in Putter()
1842 MU.Lock(); in Putter()
1844 MU.Unlock(); in Putter()
1871 Mutex MU; variable
1882 MU.Lock(); in Writer()
1884 MU.Unlock(); in Writer()
1888 MU.Lock(); in Reader()
1890 MU.Unlock(); in Reader()
1929 Mutex MU, MU1, MU2; variable
1983 Mutex MU; variable
1986 MU.Lock(); in Worker()
1988 MU.Unlock(); in Worker()
2035 Mutex MU, MU1, MU2; variable
2103 Mutex MU; variable
2108 MU.Lock(); in Worker1()
2111 MU.Unlock(); in Worker1()
2113 MU.Lock(); in Worker1()
2115 CV.Wait(&MU); in Worker1()
2116 ANNOTATE_CONDVAR_LOCK_WAIT(&CV, &MU); in Worker1()
2117 MU.Unlock(); in Worker1()
2125 MU.Lock(); in Worker2()
2127 CV.Wait(&MU); in Worker2()
2128 ANNOTATE_CONDVAR_LOCK_WAIT(&CV, &MU); in Worker2()
2129 MU.Unlock(); in Worker2()
2133 MU.Lock(); in Worker2()
2136 MU.Unlock(); in Worker2()
2197 Mutex MU; variable
2202 MU.Lock(); in Putter()
2204 MU.Unlock(); in Putter()
2209 MU.Lock(); in Getter()
2211 MU.Unlock(); in Getter()
2238 Mutex MU; variable
2243 MU.Lock(); in Putter()
2245 MU.Unlock(); in Putter()
2250 MU.Lock(); in Getter()
2252 MU.Unlock(); in Getter()
2277 Mutex MU; variable
2280 MU.Lock(); in First()
2282 MU.Unlock(); in First()
2286 MU.Lock(); in Second()
2288 MU.Unlock(); in Second()
2293 MU.Lock(); in Second()
2295 MU.Unlock(); in Second()
2320 Mutex MU; variable
2323 MU.Lock(); in First()
2324 MU.Unlock(); in First()
2328 MU.Lock(); in Second()
2329 MU.Unlock(); in Second()
2430 Mutex MU; variable
2453 MU.Lock(); in Waker()
2456 MU.Unlock(); in Waker()
2459 MU.Lock(); in Waker()
2461 MU.Unlock(); in Waker()
2470 MU.Lock(); in Waiter()
2472 CV.Wait(&MU); in Waiter()
2473 ANNOTATE_CONDVAR_LOCK_WAIT(&CV, &MU); in Waiter()
2474 MU.Unlock(); in Waiter()
2493 Mutex MU; variable
2524 MU.Lock(); in Waker()
2527 MU.Unlock(); in Waker()
2533 MU.Lock(); in Waker()
2536 MU.Unlock(); in Waker()
2545 MU.Lock(); in Waiter()
2547 CV.Wait(&MU); in Waiter()
2548 MU.Unlock(); in Waiter()
2568 Mutex MU; variable
2595 MU.Lock(); in Waker()
2598 MU.Unlock(); in Waker()
2604 MU.Lock(); in Waker()
2607 MU.Unlock(); in Waker()
2617 MU.Lock(); in Waiter()
2619 CV.Wait(&MU); in Waiter()
2620 MU.Unlock(); in Waiter()
2750 Mutex MU; variable
2754 MU.Lock(); in Worker_Lock()
2759 if (!MU.TryLock()) { in Worker_TryLock()
2760 MU.Unlock(); in Worker_TryLock()
2764 MU.Unlock(); in Worker_TryLock()
2919 Mutex MU; variable
2925 MU.Lock(); in Worker2()
2928 MU.Unlock(); in Worker2()
2930 MU.Lock(); in Worker2()
2932 CV.Wait(&MU); in Worker2()
2933 ANNOTATE_CONDVAR_LOCK_WAIT(&CV, &MU); in Worker2()
2934 MU.Unlock(); in Worker2()
2942 MU.Lock(); in Worker1()
2945 MU.Unlock(); in Worker1()
2947 MU.Lock(); in Worker1()
2949 CV.Wait(&MU); in Worker1()
2950 ANNOTATE_CONDVAR_LOCK_WAIT(&CV, &MU); in Worker1()
2951 MU.Unlock(); in Worker1()
2970 Mutex MU; variable
2979 ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(&MU); in Putter()
2980 MU.Lock(); in Putter()
2985 MU.Unlock(); in Putter()
2991 MU.Lock(); in Getter()
2997 MU.Unlock(); in Getter()
3136 Mutex MU; variable
3140 MU.Lock(); in T1()
3142 MU.Unlock(); in T1()
3147 MU.Lock(); in T2()
3149 MU.Unlock(); in T2()
3179 Mutex MU; variable
3183 MU.Lock(); in Signaller1()
3186 MU.Unlock(); in Signaller1()
3192 MU.Lock(); in Signaller2()
3195 MU.Unlock(); in Signaller2()
3199 MU.Lock(); in Waiter1()
3200 while (C1 != 1) CV.Wait(&MU); in Waiter1()
3202 MU.Unlock(); in Waiter1()
3207 MU.Lock(); in Waiter2()
3208 while (C2 != 1) CV.Wait(&MU); in Waiter2()
3210 MU.Unlock(); in Waiter2()
3235 Mutex MU; variable
3239 MU.Lock(); in Signaller1()
3242 MU.Unlock(); in Signaller1()
3247 MU.Lock(); in Signaller2()
3250 MU.Unlock(); in Signaller2()
3254 MU.Lock(); in Waiter1()
3255 while (C1 != 1) CV.Wait(&MU); in Waiter1()
3257 MU.Unlock(); in Waiter1()
3261 MU.Lock(); in Waiter2()
3262 while (C2 != 1) CV.Wait(&MU); in Waiter2()
3264 MU.Unlock(); in Waiter2()
3291 Mutex MU, MU1; variable
3295 MU.Lock(); in Writer()
3297 MU.Unlock(); in Writer()
3344 Mutex MU, MU1; variable
3348 MU.Lock(); in Writer()
3350 MU.Unlock(); in Writer()
3464 Mutex MU; variable
3467 MU.Lock(); in Worker()
3469 MU.Unlock(); in Worker()
3555 Mutex MU; variable
3558 MU.Lock(); in Worker()
3560 MU.Unlock(); in Worker()
3627 Mutex MU; variable
3631 MU.Lock(); in Run()
3632 MU.Unlock(); in Run()
3711 MU.Lock(); in Ref()
3714 MU.Unlock(); in Ref()
3718 MU.Lock(); in Unref()
3725 MU.Unlock(); in Unref()
3735 ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(&MU); in Annotate_MU()
3751 static Mutex MU; // protects ref_ member
3754 Mutex RefCountedClass::MU; member in RefCountedClass
3844 Mutex MU; variable
3852 MU.Lock(); in Worker1()
3855 MU.Unlock(); in Worker1()
3860 MU.Lock(); in Worker2()
3862 MU.Unlock(); in Worker2()
3869 ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(&MU); in Run()
4024 Mutex MU; variable
4036 MU.Lock(); // this is NOT a synchronization, in Reader()
4037 MU.Unlock(); // it just helps foo[i] to become visible in Reader. in Reader()
4064 Mutex MU; variable
4073 MU.Lock(); // Not a synchronization! in Reader()
4074 MU.Unlock(); in Reader()
4396 Mutex MU; variable
4399 MU.Lock(); in Publisher()
4404 MU.Unlock(); in Publisher()
4411 MU.Lock(); in Reader()
4413 MU.Unlock(); in Reader()
4443 Mutex MU, MU1, MU2; variable
4506 Mutex MU, MU1, MU2; variable
4580 Mutex MU, MU2; variable
4588 MU.Lock(); in Thr1()
4591 MU.Unlock(); in Thr1()
4603 MU.Lock(); in Thr3()
4605 CV.Wait(&MU); in Thr3()
4606 MU.Unlock(); in Thr3()
4633 Mutex MU, MU2; variable
4642 MU.Lock(); in Thr1()
4645 MU.Unlock(); in Thr1()
4656 MU.Lock(); in Thr3()
4658 CV.Wait(&MU); in Thr3()
4659 MU.Unlock(); in Thr3()
4723 Mutex MU; variable
4892 Mutex MU; variable
4900 MU.Lock(); in Signaller()
4904 MU.Unlock(); in Signaller()
4909 MU.Lock(); in Signaller()
4913 MU.Unlock(); in Signaller()
4917 MU.Lock(); in Waiter()
4919 CV.Wait(&MU); in Waiter()
4921 MU.Unlock(); in Waiter()
4923 MU.Lock(); in Waiter()
4925 CV.Wait(&MU); in Waiter()
4927 MU.Unlock(); in Waiter()
4947 Mutex MU; variable
4987 Mutex MU[N_MUTEXES]; variable
5000 MU[m].Lock(); in Worker()
5006 MU[m].Unlock(); in Worker()
5458 Mutex MU[kNumLocks]; variable
5463 if (i & (1 << j)) MU[j].Lock(); in Run()
5466 if (i & (1 << j)) MU[j].Unlock(); in Run()
6090 Mutex MU; variable
6097 MU.ReaderLockWhen(Condition(WeirdCondition, &param)); in Waiter()
6098 MU.ReaderUnlock(); in Waiter()
6104 MU.Lock(); in Waker()
6106 MU.Unlock(); // calls ANNOTATE_CONDVAR_SIGNAL; in Waker()
6764 Mutex MU; variable
6766 void Worker2() { MU.Lock(); GLOB=1; MU.Unlock();} in Worker2()
6783 Mutex MU; variable
6788 MU.Lock(); CHECK(STR->length() >= 4); MU.Unlock(); in Worker1()
6798 MU.Lock(); CHECK(STR->length() >= 4); MU.Unlock(); in Worker3()
6803 MU.Lock(); *STR += " + a very very long string"; MU.Unlock(); in Worker4()
7347 Mutex MU; variable
7352 MU.Lock(); in TP()
7354 MU.Unlock(); in TP()
7545 Mutex MU; variable
7549 MU.Lock(); in Worker()
7551 MU.Unlock(); in Worker()