• Home
  • Raw
  • Download

Lines Matching refs:mu_

972   void func1(int y) LOCKS_EXCLUDED(mu_);
973 template <typename T> void func2(T x) LOCKS_EXCLUDED(mu_);
975 Mutex mu_; member in thread_annot_lock_38::Foo
991 Mutex *mu_; member in thread_annot_lock_43::Foo
997 int GetA() EXCLUSIVE_LOCKS_REQUIRED(foo_->mu_) { return a_; } in GetA()
998 int a_ GUARDED_BY(foo_->mu_);
1006 fb->foo_->mu_->Lock(); in main()
1008 fb->foo_->mu_->Unlock(); in main()
1124 Mutex mu_; member in thread_annot_lock_68_modified::Bar
1131 mu_.Lock(); in func()
1133 mu_.Unlock(); in func()
1137 T count_ GUARDED_BY(mu_);
1139 Mutex mu_; member in thread_annot_lock_68_modified::Foo
1193 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1194 virtual void func2() LOCKS_EXCLUDED(mu_);
1195 Mutex mu_; member in thread_annot_lock_47::Base
1200 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1201 virtual void func2() LOCKS_EXCLUDED(mu_);
1208 b->mu_.Lock(); in main()
1210 b->mu_.Unlock(); in main()
1213 c->mu_.Lock(); in main()
1215 c->mu_.Unlock(); in main()
1233 void bar() LOCKS_EXCLUDED(mu_, mu1);
1234 int foo() SHARED_LOCKS_REQUIRED(mu_) EXCLUSIVE_LOCKS_REQUIRED(mu2);
1237 int a_ GUARDED_BY(mu_);
1239 Mutex mu_ ACQUIRED_AFTER(mu1);
1253 mu_.Lock(); in bar()
1256 mu_.Unlock(); in bar()
1267 f1.mu_.Lock(); in main()
1272 f1.mu_.Unlock(); in main()
1273 f2->mu_.Lock(); in main()
1275 f2->mu_.Unlock(); in main()
1464 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1465 virtual void func2() LOCKS_EXCLUDED(mu_);
1466 Mutex mu_; member in thread_annot_lock_46::Base
1471 virtual void func1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
1472 virtual void func2() LOCKS_EXCLUDED(mu_);
1480 b->mu_.Lock(); in main()
1482 b->mu_.Unlock(); in main()
1485 c->mu_.Lock(); in main()
1487 c->mu_.Unlock(); in main()
1688 Mutex mu_; member in FunctionAttrTest::Foo
1689 int a GUARDED_BY(mu_);
1694 void foo() EXCLUSIVE_LOCKS_REQUIRED(fooObj.mu_);
1698 fooObj.mu_.Lock(); in bar()
1700 fooObj.mu_.Unlock(); in bar()
1839 Mutex mu_; member in TestTemplateAttributeInstantiation::Foo1
1840 int a GUARDED_BY(mu_);
1845 int a GUARDED_BY(mu_);
1846 Mutex mu_; member in TestTemplateAttributeInstantiation::Foo2
1854 void barND(Foo1 *foo, T *fooT) EXCLUSIVE_LOCKS_REQUIRED(foo->mu_) { in barND()
1860 void barD(Foo1 *foo, T *fooT) EXCLUSIVE_LOCKS_REQUIRED(fooT->mu_) { in barD()
1873 void barND() EXCLUSIVE_LOCKS_REQUIRED(fooBase.mu_) { in barND()
1878 void barD() EXCLUSIVE_LOCKS_REQUIRED(fooBaseT.mu_) { in barD()
1884 void barTD(T2 *fooT) EXCLUSIVE_LOCKS_REQUIRED(fooBaseT.mu_, fooT->mu_) { in barTD()
1893 Mutex mu_; member in TestTemplateAttributeInstantiation::Cell
1895 T data GUARDED_BY(mu_);
1897 void fooEx() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in fooEx()
1902 mu_.Lock(); in foo()
1904 mu_.Unlock(); in foo()
1914 f1.mu_.Lock(); in test()
1915 f2.mu_.Lock(); in test()
1916 bt.fooBase.mu_.Lock(); in test()
1917 bt.fooBaseT.mu_.Lock(); in test()
1925 f1.mu_.Unlock(); in test()
1930 bt.fooBase.mu_.Unlock(); in test()
1931 bt.fooBaseT.mu_.Unlock(); in test()
1932 f2.mu_.Unlock(); in test()
1938 cell.mu_.Lock(); in test()
1940 cell.mu_.Unlock(); in test()
1948 T data GUARDED_BY(mu_);
1951 void fooEx(CellDelayed<T> *other) EXCLUSIVE_LOCKS_REQUIRED(mu_, other->mu_) { in fooEx()
1956 void fooExT(CellDelayed<T2> *otherT) EXCLUSIVE_LOCKS_REQUIRED(mu_, otherT->mu_) { in fooExT()
1961 mu_.Lock(); in foo()
1963 mu_.Unlock(); in foo()
1966 Mutex mu_; member in TestTemplateAttributeInstantiation::CellDelayed
1974 celld.mu_.Lock(); in testDelayed()
1975 celld2.mu_.Lock(); in testDelayed()
1980 celld2.mu_.Unlock(); in testDelayed()
1981 celld.mu_.Unlock(); in testDelayed()
1991 Mutex mu_; member in FunctionDeclDefTest::Foo
1992 int a GUARDED_BY(mu_);
1994 virtual void foo1(Foo *f_declared) EXCLUSIVE_LOCKS_REQUIRED(f_declared->mu_);
2006 myfoo.mu_.Lock(); in test()
2008 myfoo.mu_.Unlock(); in test()
2056 void fooT2(const T& dummy2) EXCLUSIVE_LOCKS_REQUIRED(mu_);
2058 Mutex mu_; member in FunctionDefinitionTest::Foo
2059 int a GUARDED_BY(mu_);
2067 Mutex mu_; member in FunctionDefinitionTest::FooT
2068 T a GUARDED_BY(mu_);
2076 void Foo::foo2() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo2()
2080 void Foo::foo3(Foo *other) EXCLUSIVE_LOCKS_REQUIRED(other->mu_) { in foo3()
2085 void Foo::fooT1(const T& dummy1) EXCLUSIVE_LOCKS_REQUIRED(mu_) { in fooT1()
2096 void fooF1(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { in fooF1()
2101 void fooF2(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { in fooF2()
2105 void fooF3(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_);
2111 void FooT<T>::foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo()
2136 myFoo.mu_.Lock(); in test()
2146 myFoo.mu_.Unlock(); in test()
2185 Mutex mu_; member in SelfLockingTest::MyLock2
2189 void lock() EXCLUSIVE_LOCK_FUNCTION() { mu_.Lock(); } in lock()
2190 void unlock() UNLOCK_FUNCTION() { mu_.Unlock(); } in unlock()
2221 Mutex mu_; variable
2224 MutexLock lock(&mu_); in test1()
2238 int GUARDED_BY(mu_) a;
2239 int GUARDED_BY(mu_) b, c;
2251 Mutex mu_; member in TestMultiDecl::Foo
2274 Mutex mu_; member in MoreLockExpressions::Foo
2275 int a GUARDED_BY(mu_);
2300 bar.getFoo().mu_.Lock(); in test()
2302 bar.getFoo().mu_.Unlock(); in test()
2304 (bar.getFoo().mu_).Lock(); // test parenthesis in test()
2306 (bar.getFoo().mu_).Unlock(); in test()
2308 bar.getFoo2(a).mu_.Lock(); in test()
2310 bar.getFoo2(a).mu_.Unlock(); in test()
2312 bar.getFoo3(a, b).mu_.Lock(); in test()
2314 bar.getFoo3(a, b).mu_.Unlock(); in test()
2316 getBarFoo(bar, a).mu_.Lock(); in test()
2318 getBarFoo(bar, a).mu_.Unlock(); in test()
2320 bar.getFoo2(10).mu_.Lock(); in test()
2322 bar.getFoo2(10).mu_.Unlock(); in test()
2324 bar.getFoo2(a + 1).mu_.Lock(); in test()
2326 bar.getFoo2(a + 1).mu_.Unlock(); in test()
2328 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Lock(); in test()
2330 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Unlock(); in test()
2341 bar.getFoo().mu_.Lock(); in test2()
2345 bar.getFoo().mu_.Unlock(); in test2()
2347 bar.getFoo2(a).mu_.Lock(); in test2()
2351 bar.getFoo2(a).mu_.Unlock(); in test2()
2353 bar.getFoo3(a, b).mu_.Lock(); in test2()
2357 bar.getFoo3(a, b).mu_.Unlock(); in test2()
2359 getBarFoo(bar, a).mu_.Lock(); in test2()
2363 getBarFoo(bar, a).mu_.Unlock(); in test2()
2365 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Lock(); in test2()
2369 (a > 0 ? fooArray[1] : fooArray[b]).mu_.Unlock(); in test2()
2400 int a GUARDED_BY(mu_);
2401 void foo() EXCLUSIVE_LOCKS_REQUIRED(mu_);
2402 void foo2(Foo* f) EXCLUSIVE_LOCKS_REQUIRED(mu_, f->mu_);
2404 static void sfoo(Foo* f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_);
2406 Mutex* getMu() LOCK_RETURNED(mu_);
2408 Mutex mu_; member in LockReturned::Foo
2410 static Mutex* getMu(Foo* f) LOCK_RETURNED(f->mu_);
2488 b1->mu_.Lock(); in test3()
2499 b1->mu_.Unlock(); in test3()
2508 Mutex mu_; member in ReleasableScopedLock::Foo
2510 int a GUARDED_BY(mu_);
2521 ReleasableMutexLock rlock(&mu_); in test1()
2526 ReleasableMutexLock rlock(&mu_); in test2()
2533 ReleasableMutexLock rlock(&mu_); in test3()
2540 ReleasableMutexLock rlock(&mu_); in test4()
2546 ReleasableMutexLock rlock(&mu_); in test5()
2592 Mutex mu_; member in DoubleLockBug::Foo
2593 int a GUARDED_BY(mu_);
2595 void foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_);
2596 int foo2() SHARED_LOCKS_REQUIRED(mu_);
2600 void Foo::foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo1()
2604 int Foo::foo2() SHARED_LOCKS_REQUIRED(mu_) { in foo2()
2646 Mutex mu_; member in FoolishScopedLockableBug::Foo
2647 int a GUARDED_BY(mu_);
2653 WTF_ScopedLockable wtf(&mu_); in test1()
2658 WTF_ScopedLockable wtf(&mu_); // expected-note {{mutex acquired here}} in test2()
2663 WTF_ScopedLockable wtf(&mu_); in test3()
2673 WTF_ScopedLockable wtf(&mu_); in test4()
2680 WTF_ScopedLockable wtf(&mu_); // expected-note {{mutex acquired here}} in test5()
2689 WTF_ScopedLockable wtf(&mu_); // expected-note {{mutex acquired here}} in test6()
2726 SmartPtr<Mutex> mu_; member in SmartPointerTests::Foo
2727 int a GUARDED_BY(mu_);
2728 int b GUARDED_BY(mu_.get());
2729 int c GUARDED_BY(*mu_);
2731 void Lock() EXCLUSIVE_LOCK_FUNCTION(mu_);
2732 void Unlock() UNLOCK_FUNCTION(mu_);
2752 mu_->Lock(); in test1()
2756 mu_->Unlock(); in test1()
2760 (*mu_).Lock(); in test2()
2764 (*mu_).Unlock(); in test2()
2769 mu_.get()->Lock(); in test3()
2773 mu_.get()->Unlock(); in test3()
2778 MutexLock lock(mu_.get()); in test4()
2786 MutexLock lock(&(*mu_)); in test5()
2805 mu_->Unlock(); in test7()
2808 mu_->Lock(); in test7()
2812 mu_.get()->Lock(); in test7()
2813 mu_->Unlock(); in test7()
2816 mu_->Lock(); in test7()
2817 mu_.get()->Unlock(); in test7()
2820 mu_.get()->Lock(); in test7()
2821 (*mu_).Unlock(); in test7()
2824 (*mu_).Lock(); in test7()
2825 mu_->Unlock(); in test7()
2831 mu_->Lock(); in test8()
2832 mu_.get()->Lock(); // expected-warning {{acquiring mutex 'mu_' that is already held}} in test8()
2833 (*mu_).Lock(); // expected-warning {{acquiring mutex 'mu_' that is already held}} in test8()
2834 mu_.get()->Unlock(); in test8()
2857 foo->mu_->Lock(); in test1()
2861 foo->mu_->Unlock(); in test1()
2866 (*foo).mu_->Lock(); in test2()
2870 foo.get()->mu_->Unlock(); in test2()
2875 MutexLock lock(foo->mu_.get()); in test3()
3055 Mutex mu_; member in TryLockEqTest::Foo
3056 int a GUARDED_BY(mu_);
3059 int tryLockMutexI() EXCLUSIVE_TRYLOCK_FUNCTION(1, mu_);
3060 Mutex* tryLockMutexP() EXCLUSIVE_TRYLOCK_FUNCTION(1, mu_);
3061 void unlock() UNLOCK_FUNCTION(mu_);
3110 if (mu_.TryLock() == false) { in test1()
3117 if (mu_.TryLock() == true) { in test1()
3142 Mutex mu_; member in ExistentialPatternMatching::Graph
3145 void LockAllGraphs() EXCLUSIVE_LOCK_FUNCTION(&Graph::mu_);
3146 void UnlockAllGraphs() UNLOCK_FUNCTION(&Graph::mu_);
3150 int a GUARDED_BY(&Graph::mu_);
3152 void foo() EXCLUSIVE_LOCKS_REQUIRED(&Graph::mu_) { in foo()
3155 void foo2() LOCKS_EXCLUDED(&Graph::mu_);
3167 g1.mu_.Lock(); in test()
3171 g1.mu_.Unlock(); in test()
3173 g2.mu_.Lock(); in test()
3177 g2.mu_.Unlock(); in test()
3186 g1.mu_.Unlock(); in test()
3189 g2.mu_.Unlock(); in test()
3192 g1.mu_.Lock(); // expected-warning {{acquiring mutex 'g1.mu_' that is already held}} in test()
3193 g1.mu_.Unlock(); in test()
3203 Mutex mu_; member in StringIgnoreTest::Foo
3273 Mutex mu_; member
3274 int a GUARDED_BY(mu_);
3278 EXCLUSIVE_TRYLOCK_FUNCTION(true, &Foo::mu_);
3284 lt->mu_.Unlock(); in test()
3293 Mutex mu_; member in UniversalLock::Foo
3296 int a GUARDED_BY(mu_);
3297 void r_foo() SHARED_LOCKS_REQUIRED(mu_);
3298 void w_foo() EXCLUSIVE_LOCKS_REQUIRED(mu_);
3329 mu_.Lock(); in test3()
3334 mu_.Lock(); in test3()
3338 mu_.Unlock(); in test3()
3345 mu_.Lock(); in test4()
3346 mu_.Unlock(); in test4()
3349 mu_.Lock(); in test4()
3352 mu_.Unlock(); in test4()
3354 mu_.Lock(); in test4()
3356 mu_.Unlock(); in test4()
3391 Mutex mu_; member in ExprMatchingBugFix::Foo
3405 void unlockFoo() UNLOCK_FUNCTION(&Foo::mu_);
3413 foo->mu_.Lock(); in test()
3419 foo->mu_.Unlock(); in test()
3430 static Mutex mu_; member in ComplexNameTest::Foo
3432 Foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in EXCLUSIVE_LOCKS_REQUIRED() argument
3433 ~Foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in EXCLUSIVE_LOCKS_REQUIRED() argument
3435 int operator[](int i) EXCLUSIVE_LOCKS_REQUIRED(mu_) { return 0; } in operator []()
3440 static Mutex mu_; member in ComplexNameTest::Bar
3442 Bar() LOCKS_EXCLUDED(mu_) { } in LOCKS_EXCLUDED() argument
3443 ~Bar() LOCKS_EXCLUDED(mu_) { } in LOCKS_EXCLUDED() argument
3445 int operator[](int i) LOCKS_EXCLUDED(mu_) { return 0; } in operator []()
3456 Bar::mu_.Lock(); in test2()
3461 Bar::mu_.Unlock(); in test2()
3542 Mutex* mu_; member
3548 void elr(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3564 void globalELR(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3577 void globalELR2(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3600 void elr(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3620 SelfLock() EXCLUSIVE_LOCK_FUNCTION(mu_);
3621 ~SelfLock() UNLOCK_FUNCTION(mu_);
3623 void foo() EXCLUSIVE_LOCKS_REQUIRED(mu_);
3625 Mutex mu_; member in SelfConstructorTest::SelfLock
3817 mu_.Lock(); in test()
3821 mu_.Unlock(); in test()
3823 mu_.ReaderLock(); in test()
3828 mu_.Unlock(); in test()
3861 Mutex mu_; member in GuardedNonPrimitiveTypeTest::Foo
3862 Data data_ GUARDED_BY(mu_);
3863 Data* datap1_ GUARDED_BY(mu_);
3864 Data* datap2_ PT_GUARDED_BY(mu_);
3896 Mutex mu_; member in GuardedNonPrimitive_MemberAccess::Bar
3897 Foo foo GUARDED_BY(mu_);
3898 Foo* foop PT_GUARDED_BY(mu_);
3935 Mutex mu_; member in TestThrowExpr::Foo
3940 mu_.Lock(); in test()
3944 mu_.Unlock(); in test()
3970 void lock() EXCLUSIVE_LOCK_FUNCTION() { mu_.Lock(); } in lock()
3971 void readerLock() SHARED_LOCK_FUNCTION() { mu_.ReaderLock(); } in readerLock()
3972 void unlock() UNLOCK_FUNCTION() { mu_.Unlock(); } in unlock()
3975 Mutex mu_; member in LockUnlockFunctionTest::MyLockable
3982 void lock() EXCLUSIVE_LOCK_FUNCTION(mu_) { in lock()
3983 mu_.Lock(); in lock()
3986 void readerLock() SHARED_LOCK_FUNCTION(mu_) { in readerLock()
3987 mu_.ReaderLock(); in readerLock()
3990 void unlock() UNLOCK_FUNCTION(mu_) { in unlock()
3991 mu_.Unlock(); in unlock()
3995 void lockBad() EXCLUSIVE_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in lockBad()
4000 void readerLockBad() SHARED_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in readerLockBad()
4005 void unlockBad() UNLOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in unlockBad()
4011 void lockBad2() EXCLUSIVE_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in lockBad2()
4017 void readerLockBad2() SHARED_LOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in readerLockBad2()
4023 void unlockBad2() UNLOCK_FUNCTION(mu_) { // expected-note {{mutex acquired here}} in unlockBad2()
4028 Mutex mu_; member in LockUnlockFunctionTest::Foo
4040 int a GUARDED_BY(mu_);
4041 Mutex mu_; member in AssertHeldTest::Foo
4044 mu_.AssertHeld(); in test1()
4050 mu_.AssertReaderHeld(); in test2()
4057 mu_.AssertHeld(); in test3()
4060 mu_.AssertHeld(); in test3()
4066 void test4() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in test4()
4067 mu_.AssertHeld(); in test4()
4072 void test5() UNLOCK_FUNCTION(mu_) { in test5()
4073 mu_.AssertHeld(); in test5()
4074 mu_.Unlock(); in test5()
4078 mu_.AssertHeld(); in test6()
4079 mu_.Unlock(); in test6()
4084 mu_.AssertHeld(); in test7()
4087 mu_.Lock(); in test7()
4091 mu_.Unlock(); in test7()
4096 mu_.Lock(); in test8()
4099 mu_.AssertHeld(); in test8()
4103 mu_.Unlock(); in test8()
4108 mu_.AssertHeld(); in test9()
4111 mu_.Lock(); // expected-note {{mutex acquired here}} in test9()
4117 mu_.Lock(); // expected-note {{mutex acquired here}} in test10()
4120 mu_.AssertHeld(); in test10()
4124 void assertMu() ASSERT_EXCLUSIVE_LOCK(mu_);
4413 Mutex mu_; member in ThreadAttributesOnLambdas::Foo
4415 void LockedFunction() EXCLUSIVE_LOCKS_REQUIRED(mu_);
4418 auto func1 = [this]() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in test()
4426 auto func3 = [this]() EXCLUSIVE_LOCK_FUNCTION(mu_) { in test()
4427 mu_.Lock(); in test()
4433 mu_.Unlock(); in test()