Lines Matching refs:mu_

1003   void func1(int y) LOCKS_EXCLUDED(mu_);
1004 template <typename T> void func2(T x) LOCKS_EXCLUDED(mu_);
1006 Mutex mu_; member in thread_annot_lock_38::Foo
1022 Mutex *mu_; member in thread_annot_lock_43::Foo
1028 int GetA() EXCLUSIVE_LOCKS_REQUIRED(foo_->mu_) { return a_; } in GetA()
1029 int a_ GUARDED_BY(foo_->mu_);
1037 fb->foo_->mu_->Lock(); in main()
1039 fb->foo_->mu_->Unlock(); in main()
1155 Mutex mu_; member in thread_annot_lock_68_modified::Bar
1162 mu_.Lock(); in func()
1164 mu_.Unlock(); in func()
1168 T count_ GUARDED_BY(mu_);
1170 Mutex mu_; member in thread_annot_lock_68_modified::Foo
1224 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1225 virtual void func2() LOCKS_EXCLUDED(mu_);
1226 Mutex mu_; member in thread_annot_lock_47::Base
1231 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1232 virtual void func2() LOCKS_EXCLUDED(mu_);
1239 b->mu_.Lock(); in main()
1241 b->mu_.Unlock(); in main()
1244 c->mu_.Lock(); in main()
1246 c->mu_.Unlock(); in main()
1264 void bar() LOCKS_EXCLUDED(mu_, mu1);
1265 int foo() SHARED_LOCKS_REQUIRED(mu_) EXCLUSIVE_LOCKS_REQUIRED(mu2);
1268 int a_ GUARDED_BY(mu_);
1270 Mutex mu_ ACQUIRED_AFTER(mu1);
1284 mu_.Lock(); in bar()
1287 mu_.Unlock(); in bar()
1298 f1.mu_.Lock(); in main()
1303 f1.mu_.Unlock(); in main()
1304 f2->mu_.Lock(); in main()
1306 f2->mu_.Unlock(); in main()
1495 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1496 virtual void func2() LOCKS_EXCLUDED(mu_);
1497 Mutex mu_; member in thread_annot_lock_46::Base
1502 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1503 virtual void func2() LOCKS_EXCLUDED(mu_);
1511 b->mu_.Lock(); in main()
1513 b->mu_.Unlock(); in main()
1516 c->mu_.Lock(); in main()
1518 c->mu_.Unlock(); in main()
1719 Mutex mu_; member in FunctionAttrTest::Foo
1720 int a GUARDED_BY(mu_);
1725 void foo() EXCLUSIVE_LOCKS_REQUIRED(fooObj.mu_);
1729 fooObj.mu_.Lock(); in bar()
1731 fooObj.mu_.Unlock(); in bar()
1902 Mutex mu_; member in TestTemplateAttributeInstantiation::Foo1
1903 int a GUARDED_BY(mu_);
1908 int a GUARDED_BY(mu_);
1909 Mutex mu_; member in TestTemplateAttributeInstantiation::Foo2
1917 void barND(Foo1 *foo, T *fooT) EXCLUSIVE_LOCKS_REQUIRED(foo->mu_) { in barND()
1923 void barD(Foo1 *foo, T *fooT) EXCLUSIVE_LOCKS_REQUIRED(fooT->mu_) { in barD()
1936 void barND() EXCLUSIVE_LOCKS_REQUIRED(fooBase.mu_) { in barND()
1941 void barD() EXCLUSIVE_LOCKS_REQUIRED(fooBaseT.mu_) { in barD()
1947 void barTD(T2 *fooT) EXCLUSIVE_LOCKS_REQUIRED(fooBaseT.mu_, fooT->mu_) { in barTD()
1956 Mutex mu_; member in TestTemplateAttributeInstantiation::Cell
1958 T data GUARDED_BY(mu_);
1960 void fooEx() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in fooEx()
1965 mu_.Lock(); in foo()
1967 mu_.Unlock(); in foo()
1977 f1.mu_.Lock(); in test()
1978 f2.mu_.Lock(); in test()
1979 bt.fooBase.mu_.Lock(); in test()
1980 bt.fooBaseT.mu_.Lock(); in test()
1988 f1.mu_.Unlock(); in test()
1993 bt.fooBase.mu_.Unlock(); in test()
1994 bt.fooBaseT.mu_.Unlock(); in test()
1995 f2.mu_.Unlock(); in test()
2001 cell.mu_.Lock(); in test()
2003 cell.mu_.Unlock(); in test()
2011 T data GUARDED_BY(mu_);
2014 void fooEx(CellDelayed<T> *other) EXCLUSIVE_LOCKS_REQUIRED(mu_, other->mu_) { in fooEx()
2019 void fooExT(CellDelayed<T2> *otherT) EXCLUSIVE_LOCKS_REQUIRED(mu_, otherT->mu_) { in fooExT()
2024 mu_.Lock(); in foo()
2026 mu_.Unlock(); in foo()
2029 Mutex mu_; member in TestTemplateAttributeInstantiation::CellDelayed
2037 celld.mu_.Lock(); in testDelayed()
2038 celld2.mu_.Lock(); in testDelayed()
2043 celld2.mu_.Unlock(); in testDelayed()
2044 celld.mu_.Unlock(); in testDelayed()
2054 Mutex mu_; member in FunctionDeclDefTest::Foo
2055 int a GUARDED_BY(mu_);
2057 virtual void foo1(Foo *f_declared) EXCLUSIVE_LOCKS_REQUIRED(f_declared->mu_);
2069 myfoo.mu_.Lock(); in test()
2071 myfoo.mu_.Unlock(); in test()
2119 void fooT2(const T& dummy2) EXCLUSIVE_LOCKS_REQUIRED(mu_);
2121 Mutex mu_; member in FunctionDefinitionTest::Foo
2122 int a GUARDED_BY(mu_);
2130 Mutex mu_; member in FunctionDefinitionTest::FooT
2131 T a GUARDED_BY(mu_);
2139 void Foo::foo2() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo2()
2143 void Foo::foo3(Foo *other) EXCLUSIVE_LOCKS_REQUIRED(other->mu_) { in foo3()
2148 void Foo::fooT1(const T& dummy1) EXCLUSIVE_LOCKS_REQUIRED(mu_) { in fooT1()
2159 void fooF1(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { in fooF1()
2164 void fooF2(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { in fooF2()
2168 void fooF3(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_);
2174 void FooT<T>::foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo()
2199 myFoo.mu_.Lock(); in test()
2209 myFoo.mu_.Unlock(); in test()
2248 Mutex mu_; member in SelfLockingTest::MyLock2
2252 void lock() EXCLUSIVE_LOCK_FUNCTION() { mu_.Lock(); } in lock()
2253 void unlock() UNLOCK_FUNCTION() { mu_.Unlock(); } in unlock()
2284 Mutex mu_; variable
2287 MutexLock lock(&mu_); in test1()
2301 int GUARDED_BY(mu_) a;
2302 int GUARDED_BY(mu_) b, c;
2314 Mutex mu_; member in TestMultiDecl::Foo
2337 Mutex mu_; member in MoreLockExpressions::Foo
2338 int a GUARDED_BY(mu_);
2364 bar.getFoo().mu_.Lock(); in test()
2366 bar.getFoo().mu_.Unlock(); in test()
2368 (bar.getFoo().mu_).Lock(); // test parenthesis in test()
2370 (bar.getFoo().mu_).Unlock(); in test()
2372 bar.getFoo2(a).mu_.Lock(); in test()
2374 bar.getFoo2(a).mu_.Unlock(); in test()
2376 bar.getFoo3(a, b).mu_.Lock(); in test()
2378 bar.getFoo3(a, b).mu_.Unlock(); in test()
2380 getBarFoo(bar, a).mu_.Lock(); in test()
2382 getBarFoo(bar, a).mu_.Unlock(); in test()
2384 bar.getFoo2(10).mu_.Lock(); in test()
2386 bar.getFoo2(10).mu_.Unlock(); in test()
2388 bar.getFoo2(a + 1).mu_.Lock(); in test()
2390 bar.getFoo2(a + 1).mu_.Unlock(); in test()
2392 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Lock(); in test()
2394 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Unlock(); in test()
2396 fooFuncPtr().mu_.Lock(); in test()
2398 fooFuncPtr().mu_.Unlock(); in test()
2409 bar.getFoo().mu_.Lock(); in test2()
2413 bar.getFoo().mu_.Unlock(); in test2()
2415 bar.getFoo2(a).mu_.Lock(); in test2()
2419 bar.getFoo2(a).mu_.Unlock(); in test2()
2421 bar.getFoo3(a, b).mu_.Lock(); in test2()
2425 bar.getFoo3(a, b).mu_.Unlock(); in test2()
2427 getBarFoo(bar, a).mu_.Lock(); in test2()
2431 getBarFoo(bar, a).mu_.Unlock(); in test2()
2433 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Lock(); in test2()
2437 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Unlock(); in test2()
2468 int a GUARDED_BY(mu_);
2469 void foo() EXCLUSIVE_LOCKS_REQUIRED(mu_);
2470 void foo2(Foo* f) EXCLUSIVE_LOCKS_REQUIRED(mu_, f->mu_);
2472 static void sfoo(Foo* f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_);
2474 Mutex* getMu() LOCK_RETURNED(mu_);
2476 Mutex mu_; member in LockReturned::Foo
2478 static Mutex* getMu(Foo* f) LOCK_RETURNED(f->mu_);
2556 b1->mu_.Lock(); in test3()
2567 b1->mu_.Unlock(); in test3()
2576 Mutex mu_; member in ReleasableScopedLock::Foo
2578 int a GUARDED_BY(mu_);
2589 ReleasableMutexLock rlock(&mu_); in test1()
2594 ReleasableMutexLock rlock(&mu_); in test2()
2601 ReleasableMutexLock rlock(&mu_); in test3()
2608 ReleasableMutexLock rlock(&mu_); in test4()
2614 ReleasableMutexLock rlock(&mu_); in test5()
2947 Mutex mu_; member in DoubleLockBug::Foo
2948 int a GUARDED_BY(mu_);
2950 void foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
2951 int foo2() SHARED_LOCKS_REQUIRED(mu_);
2955 void Foo::foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo1()
2959 int Foo::foo2() SHARED_LOCKS_REQUIRED(mu_) { in foo2()
3001 Mutex mu_; member in FoolishScopedLockableBug::Foo
3002 int a GUARDED_BY(mu_);
3008 WTF_ScopedLockable wtf(&mu_); in test1()
3013 WTF_ScopedLockable wtf(&mu_); // expected-note {{mutex acquired here}} in test2()
3018 WTF_ScopedLockable wtf(&mu_); in test3()
3028 WTF_ScopedLockable wtf(&mu_); in test4()
3035 WTF_ScopedLockable wtf(&mu_); // expected-note {{mutex acquired here}} in test5()
3044 WTF_ScopedLockable wtf(&mu_); // expected-note {{mutex acquired here}} in test6()
3095 SmartPtr<Mutex> mu_; member in SmartPointerTests::Foo
3096 int a GUARDED_BY(mu_);
3097 int b GUARDED_BY(mu_.get());
3098 int c GUARDED_BY(*mu_);
3100 void Lock() EXCLUSIVE_LOCK_FUNCTION(mu_);
3101 void Unlock() UNLOCK_FUNCTION(mu_);
3121 mu_->Lock(); in test1()
3125 mu_->Unlock(); in test1()
3129 (*mu_).Lock(); in test2()
3133 (*mu_).Unlock(); in test2()
3138 mu_.get()->Lock(); in test3()
3142 mu_.get()->Unlock(); in test3()
3147 MutexLock lock(mu_.get()); in test4()
3155 MutexLock lock(&(*mu_)); in test5()
3174 mu_->Unlock(); in test7()
3177 mu_->Lock(); in test7()
3181 mu_.get()->Lock(); in test7()
3182 mu_->Unlock(); in test7()
3185 mu_->Lock(); in test7()
3186 mu_.get()->Unlock(); in test7()
3189 mu_.get()->Lock(); in test7()
3190 (*mu_).Unlock(); in test7()
3193 (*mu_).Lock(); in test7()
3194 mu_->Unlock(); in test7()
3200 mu_->Lock(); // expected-note 2 {{mutex acquired here}} in test8()
3201 mu_.get()->Lock(); // expected-warning {{acquiring mutex 'mu_' that is already held}} in test8()
3202 (*mu_).Lock(); // expected-warning {{acquiring mutex 'mu_' that is already held}} in test8()
3203 mu_.get()->Unlock(); // expected-note {{mutex released here}} in test8()
3226 foo->mu_->Lock(); in test1()
3230 foo->mu_->Unlock(); in test1()
3235 (*foo).mu_->Lock(); in test2()
3239 foo.get()->mu_->Unlock(); in test2()
3244 MutexLock lock(foo->mu_.get()); in test3()
3424 Mutex mu_; member in TryLockEqTest::Foo
3425 int a GUARDED_BY(mu_);
3428 int tryLockMutexI() EXCLUSIVE_TRYLOCK_FUNCTION(1, mu_);
3429 Mutex* tryLockMutexP() EXCLUSIVE_TRYLOCK_FUNCTION(1, mu_);
3430 void unlock() UNLOCK_FUNCTION(mu_);
3479 if (mu_.TryLock() == false) { in test1()
3486 if (mu_.TryLock() == true) { in test1()
3511 Mutex mu_; member in ExistentialPatternMatching::Graph
3514 void LockAllGraphs() EXCLUSIVE_LOCK_FUNCTION(&Graph::mu_);
3515 void UnlockAllGraphs() UNLOCK_FUNCTION(&Graph::mu_);
3519 int a GUARDED_BY(&Graph::mu_);
3521 void foo() EXCLUSIVE_LOCKS_REQUIRED(&Graph::mu_) { in foo()
3524 void foo2() LOCKS_EXCLUDED(&Graph::mu_);
3536 g1.mu_.Lock(); in test()
3540 g1.mu_.Unlock(); in test()
3542 g2.mu_.Lock(); in test()
3546 g2.mu_.Unlock(); in test()
3555 g1.mu_.Unlock(); in test()
3558 g2.mu_.Unlock(); in test()
3561 g1.mu_.Lock(); // expected-warning {{acquiring mutex 'g1.mu_' that is already held}} in test()
3562 g1.mu_.Unlock(); in test()
3572 Mutex mu_; member in StringIgnoreTest::Foo
3642 Mutex mu_; member
3643 int a GUARDED_BY(mu_);
3647 EXCLUSIVE_TRYLOCK_FUNCTION(true, &Foo::mu_);
3653 lt->mu_.Unlock(); in test()
3662 Mutex mu_; member in UniversalLock::Foo
3665 int a GUARDED_BY(mu_);
3666 void r_foo() SHARED_LOCKS_REQUIRED(mu_);
3667 void w_foo() EXCLUSIVE_LOCKS_REQUIRED(mu_);
3698 mu_.Lock(); in test3()
3703 mu_.Lock(); in test3()
3707 mu_.Unlock(); in test3()
3714 mu_.Lock(); in test4()
3715 mu_.Unlock(); in test4()
3718 mu_.Lock(); in test4()
3721 mu_.Unlock(); in test4()
3723 mu_.Lock(); in test4()
3725 mu_.Unlock(); in test4()
3760 Mutex mu_; member in ExprMatchingBugFix::Foo
3774 void unlockFoo() UNLOCK_FUNCTION(&Foo::mu_);
3782 foo->mu_.Lock(); in test()
3788 foo->mu_.Unlock(); in test()
3799 static Mutex mu_; member in ComplexNameTest::Foo
3801 Foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in EXCLUSIVE_LOCKS_REQUIRED() argument
3802 ~Foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in EXCLUSIVE_LOCKS_REQUIRED() argument
3804 int operator[](int i) EXCLUSIVE_LOCKS_REQUIRED(mu_) { return 0; } in operator []()
3809 static Mutex mu_; member in ComplexNameTest::Bar
3811 Bar() LOCKS_EXCLUDED(mu_) { } in LOCKS_EXCLUDED() argument
3812 ~Bar() LOCKS_EXCLUDED(mu_) { } in LOCKS_EXCLUDED() argument
3814 int operator[](int i) LOCKS_EXCLUDED(mu_) { return 0; } in operator []()
3825 Bar::mu_.Lock(); in test2()
3830 Bar::mu_.Unlock(); in test2()
3911 Mutex* mu_; member
3917 void elr(Cell<T>* c) EXCLUSIVE_LOCKS_REQUIRED(c->mu_);
3933 void globalELR(Cell<T>* c) EXCLUSIVE_LOCKS_REQUIRED(c->mu_);
3946 void globalELR2(Cell<T>* c) EXCLUSIVE_LOCKS_REQUIRED(c->mu_);
3969 void elr(Cell<T>* c) EXCLUSIVE_LOCKS_REQUIRED(c->mu_);
3989 SelfLock() EXCLUSIVE_LOCK_FUNCTION(mu_);
3990 ~SelfLock() UNLOCK_FUNCTION(mu_);
3992 void foo() EXCLUSIVE_LOCKS_REQUIRED(mu_);
3994 Mutex mu_; member in SelfConstructorTest::SelfLock
4207 mu_.Lock(); in test()
4211 mu_.Unlock(); in test()
4213 mu_.ReaderLock(); in test()
4218 mu_.Unlock(); in test()
4251 Mutex mu_; member in GuardedNonPrimitiveTypeTest::Foo
4252 Data data_ GUARDED_BY(mu_);
4253 Data* datap1_ GUARDED_BY(mu_);
4254 Data* datap2_ PT_GUARDED_BY(mu_);
4286 Mutex mu_; member in GuardedNonPrimitive_MemberAccess::Bar
4287 Foo foo GUARDED_BY(mu_);
4288 Foo* foop PT_GUARDED_BY(mu_);
4325 Mutex mu_; member in TestThrowExpr::Foo
4330 mu_.Lock(); in test()
4334 mu_.Unlock(); in test()
4360 void lock() EXCLUSIVE_LOCK_FUNCTION() { mu_.Lock(); } in lock()
4361 void readerLock() SHARED_LOCK_FUNCTION() { mu_.ReaderLock(); } in readerLock()
4362 void unlock() UNLOCK_FUNCTION() { mu_.Unlock(); } in unlock()
4365 Mutex mu_; member in LockUnlockFunctionTest::MyLockable
4372 void lock() EXCLUSIVE_LOCK_FUNCTION(mu_) { in lock()
4373 mu_.Lock(); in lock()
4376 void readerLock() SHARED_LOCK_FUNCTION(mu_) { in readerLock()
4377 mu_.ReaderLock(); in readerLock()
4380 void unlock() UNLOCK_FUNCTION(mu_) { in unlock()
4381 mu_.Unlock(); in unlock()
4384 void unlockExclusive() EXCLUSIVE_UNLOCK_FUNCTION(mu_) { in unlockExclusive()
4385 mu_.Unlock(); in unlockExclusive()
4388 void unlockShared() SHARED_UNLOCK_FUNCTION(mu_) { in unlockShared()
4389 mu_.ReaderUnlock(); in unlockShared()
4393 void lockBad() EXCLUSIVE_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in lockBad()
4398 void readerLockBad() SHARED_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in readerLockBad()
4403 void unlockBad() UNLOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in unlockBad()
4409 void lockBad2() EXCLUSIVE_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in lockBad2()
4415 void readerLockBad2() SHARED_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in readerLockBad2()
4421 void unlockBad2() UNLOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in unlockBad2()
4426 Mutex mu_; member in LockUnlockFunctionTest::Foo
4438 int a GUARDED_BY(mu_);
4439 Mutex mu_; member in AssertHeldTest::Foo
4442 mu_.AssertHeld(); in test1()
4448 mu_.AssertReaderHeld(); in test2()
4455 mu_.AssertHeld(); in test3()
4458 mu_.AssertHeld(); in test3()
4464 void test4() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in test4()
4465 mu_.AssertHeld(); in test4()
4470 void test5() UNLOCK_FUNCTION(mu_) { in test5()
4471 mu_.AssertHeld(); in test5()
4472 mu_.Unlock(); in test5()
4476 mu_.AssertHeld(); in test6()
4477 mu_.Unlock(); in test6()
4482 mu_.AssertHeld(); in test7()
4485 mu_.Lock(); in test7()
4489 mu_.Unlock(); in test7()
4494 mu_.Lock(); in test8()
4497 mu_.AssertHeld(); in test8()
4501 mu_.Unlock(); in test8()
4506 mu_.AssertHeld(); in test9()
4509 mu_.Lock(); // expected-note {{mutex acquired here}} in test9()
4515 mu_.Lock(); // expected-note {{mutex acquired here}} in test10()
4518 mu_.AssertHeld(); in test10()
4522 void assertMu() ASSERT_EXCLUSIVE_LOCK(mu_);
4811 Mutex mu_; member in ThreadAttributesOnLambdas::Foo
4813 void LockedFunction() EXCLUSIVE_LOCKS_REQUIRED(mu_);
4816 auto func1 = [this]() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in test()
4824 auto func3 = [this]() EXCLUSIVE_LOCK_FUNCTION(mu_) { in test()
4825 mu_.Lock(); in test()
4831 mu_.Unlock(); in test()
5702 SmartPtr_Derived<Mutex> mu_; member in Derived_Smart_Pointer::Foo
5703 int a GUARDED_BY(mu_);
5704 int b GUARDED_BY(mu_.get());
5705 int c GUARDED_BY(*mu_);
5707 void Lock() EXCLUSIVE_LOCK_FUNCTION(mu_);
5708 void Unlock() UNLOCK_FUNCTION(mu_);
5739 foo->mu_->Lock(); in test1()
5741 foo->mu_->Unlock(); in test1()
5743 MutexLock lock(foo->mu_.get()); in test1()