Home | History | Annotate | Download | only in unittest

Lines Matching refs:MU

64 // 2. MU.Lock()                         b. MU.Lock()
66 // CV.Wait(&MU) <-------/ d. MU.Unlock()
67 // 4. MU.Unlock()
72 Mutex MU;
77 MU.Lock();
80 MU.Unlock();
89 MU.Lock();
91 CV.Wait(&MU);
93 MU.Unlock();
342 Mutex mu;
357 mu.Lock();
359 mu.Unlock();
406 RWLock mu;
410 ReaderLockScoped lock(&mu); // Reader lock for writing. -- bug.
415 WriterLockScoped lock(&mu);
452 // to this particular lock by using ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&mu).
455 RWLock mu;
465 ReaderLockScoped lock(&mu);
472 WriterLockScoped lock(&mu);
483 ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&mu);
570 pthread_mutex_t mu;
571 CHECK(0 == pthread_mutex_init(&mu, &attr));
572 CHECK(0 == pthread_mutex_lock(&mu));
573 CHECK(0 == pthread_mutex_unlock(&mu));
574 int ret_unlock = pthread_mutex_unlock(&mu); // unlocking twice.
575 int ret_destroy = pthread_mutex_destroy(&mu);
666 RWLock MU;
670 MU.Lock();
678 MU.Unlock();
684 if (MU.TryLock()) CHECK(0);
689 if (MU.TryLock()) {
691 MU.Unlock();
699 if (MU.ReaderTryLock()) CHECK(0);
704 if (MU.ReaderTryLock()) {
706 MU.ReaderUnlock();
893 Mutex mu;
896 mu.Lock();
898 mu.Unlock();
1041 } mu;
1046 mu.Lock();
1048 mu.Unlock();
1052 mu.set_fd(1 /* stdout */);
1062 pthread_mutex_t mu;
1066 pthread_mutex_lock(&mu);
1068 pthread_mutex_unlock(&mu);
1075 pthread_mutex_lock(&mu);
1077 pthread_mutex_unlock(&mu);
1084 pthread_mutex_init(&mu, NULL);
1087 ANNOTATE_NOT_HAPPENS_BEFORE_MUTEX(&mu);
1091 pthread_mutex_destroy(&mu);
1098 pthread_mutex_t mu;
1103 pthread_mutex_lock(&mu);
1104 pthread_cond_timedwait_relative_np(&cv, &mu, &tv);
1106 pthread_mutex_unlock(&mu);
1110 pthread_mutex_lock(&mu);
1113 pthread_mutex_unlock(&mu);
1117 pthread_mutex_init(&mu, NULL);
1122 pthread_mutex_destroy(&mu);
1130 RWLock mu;
1136 mu.ReaderLock();
1137 mu.ReaderUnlock();
1143 mu.ReaderLock();
1144 mu.ReaderUnlock();
1149 ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&mu);