Home | History | Annotate | Download | only in unittest

Lines Matching refs:MU2

43 Mutex mu2;  // This Mutex is not related to var.
52 MutexLock lock(&mu2); // Wrong Mutex.
75 Mutex MU2;
85 MU2.Lock(); CHECK(GLOB >= 0); MU2.Unlock();
175 // In this test GLOB is protected by MU1 and MU2, but inconsistently.
185 Mutex MU2;
186 void Worker1() { MU1.Lock(); MU2.Lock(); GLOB=1; MU2.Unlock(); MU1.Unlock(); }
188 void Worker3() { MU1.Lock(); MU2.Lock(); GLOB=3; MU2.Unlock(); MU1.Unlock(); }
189 void Worker4() { MU2.Lock(); GLOB=4; MU2.Unlock(); }
210 Mutex MU2;
211 void Worker1() { MU1.Lock(); MU2.Lock(); GLOB=1; MU2.Unlock(); MU1.Unlock(); }
212 void Worker2() { MU1.Lock(); MU2.Lock(); GLOB=3; MU2.Unlock(); MU1.Unlock(); }
331 Mutex mu2; // Unrelated to PTR.
341 MutexLock lock2(&mu2); // This lock is unrelated to PTR.
351 MutexLock lock2(&mu2); // Oh, gosh, this is a wrong mutex!
389 Mutex mu2; // Unrelated to PTR.
399 MutexLock lock2(&mu2); // This lock is unrelated to PTR.
410 MutexLock lock2(&mu2); // Wrong mutex!