Lines Matching refs:mu
48 MutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu);
49 MutexLock(Mutex *mu, bool adopt) EXCLUSIVE_LOCKS_REQUIRED(mu);
55 ReaderMutexLock(Mutex *mu) SHARED_LOCK_FUNCTION(mu);
56 ReaderMutexLock(Mutex *mu, bool adopt) SHARED_LOCKS_REQUIRED(mu);
62 ReleasableMutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu);
151 Mutex mu; member in MutexWrapper
152 int x __attribute__((guarded_by(mu)));
153 void MyLock() __attribute__((exclusive_lock_function(mu)));
159 sls_mw.mu.Lock(); in sls_fun_0()
161 sls_mw.mu.Unlock(); in sls_fun_0()
248 sls_mw.mu.Unlock(); in sls_fun_good_8()
541 int a __attribute__((guarded_by(mu)));
544 void foo() __attribute__((exclusive_locks_required(mu))) { } in foo()
555 int c __attribute__((guarded_by(mu)));
557 Mutex mu; member in LateFoo
564 int *q __attribute__((pt_guarded_by(mu)));
566 Mutex mu; member in LateBar
577 FooA.mu.Lock(); in late_0()
579 FooA.mu.Unlock(); in late_0()
584 BarA.FooPointer->mu.Lock(); in late_1()
586 BarA.FooPointer->mu.Unlock(); in late_1()
592 fooA.mu.Lock(); in late_bad_0()
596 fooA.mu.Unlock(); in late_bad_0()
600 Mutex mu; in late_bad_1() local
601 mu.Lock(); in late_bad_1()
608 mu.Unlock(); in late_bad_1()
613 BarA.FooPointer->mu.Lock(); in late_bad_2()
617 BarA.FooPointer->mu.Unlock(); in late_bad_2()
622 BarA.Foo.mu.Lock(); in late_bad_3()
626 BarA.Foo.mu.Unlock(); in late_bad_3()
631 BarA.Foo.mu.Lock(); in late_bad_4()
635 BarA.Foo.mu.Unlock(); in late_bad_4()
896 Mutex mu; variable
902 int *q PT_GUARDED_BY(mu);
903 Mutex mu1_ ACQUIRED_AFTER(mu);
907 int *p GUARDED_BY(mu) PT_GUARDED_BY(mu);
908 int res GUARDED_BY(mu) = 5;
913 mu.Lock(); in func()
922 mu.Unlock(); in func()
1089 Mutex mu; variable
1093 int method1(int i) SHARED_LOCKS_REQUIRED(mu1, mu, mu2);
1110 mu.Lock(); in main()
1112 mu.Unlock(); in main()
1158 void MyLock() EXCLUSIVE_LOCK_FUNCTION(mu);
1166 mu.Unlock(); in func()
1176 Mutex mu; member in thread_annot_lock_30_modified::Bar
1314 Mutex mu; variable
1320 int *q PT_GUARDED_BY(mu);
1321 Mutex mu1_ ACQUIRED_AFTER(mu);
1325 int *p GUARDED_BY(mu) PT_GUARDED_BY(mu);
1327 int res GUARDED_BY(mu) = 5;
1495 Mutex mu; variable
1500 int method1(int i) SHARED_LOCKS_REQUIRED(mu1, mu, mu2, mu3);
1524 Mutex mu; member in substitution_test::MyData
1526 void lockData() __attribute__((exclusive_lock_function(mu)));
1527 void unlockData() __attribute__((unlock_function(mu)));
1529 void doSomething() __attribute__((exclusive_locks_required(mu))) { } in doSomething()
1535 void lockData (MyData *d) __attribute__((exclusive_lock_function(d->mu)));
1536 void unlockData(MyData *d) __attribute__((unlock_function(d->mu)));
1542 void foo(MyData* d) __attribute__((exclusive_locks_required(d->mu))) { } in foo()
1709 Mutex mu; member
1710 int a GUARDED_BY(mu);
1714 if (mu.TryLock()) { in foo1()
1716 mu.Unlock(); in foo1()
1721 if (!mu.TryLock()) return; in foo2()
1723 mu.Unlock(); in foo2()
1727 bool b = mu.TryLock(); in foo3()
1730 mu.Unlock(); in foo3()
1735 bool b = mu.TryLock(); in foo4()
1738 mu.Unlock(); in foo4()
1742 while (mu.TryLock()) { in foo5()
1744 mu.Unlock(); in foo5()
1749 bool b = mu.TryLock(); in foo6()
1753 mu.Unlock(); in foo6()
1757 bool b1 = mu.TryLock(); in foo7()
1762 mu.Unlock(); in foo7()
1768 bool b = mu.TryLock(); in foo8()
1777 mu.Unlock(); in foo8()
1783 bool b = mu.TryLock(); in foo9()
1789 mu.Unlock(); in foo9()
1795 bool b = mu.TryLock(); in foo10()
1808 if (!mu.TryLock()) in foo11()
1812 mu.Lock(); in foo11()
1815 mu.Unlock(); in foo11()
1821 if (!mu.ReaderTryLock()) in foo12()
1825 mu.ReaderLock(); in foo12()
1828 mu.Unlock(); in foo12()
2379 Mutex mu; member in TrylockJoinPoint::Foo
2384 if (!mu.TryLock()) in foo()
2387 mu.Lock(); in foo()
2389 mu.Unlock(); in foo()
2636 WTF_ScopedLockable(Mutex* mu) EXCLUSIVE_LOCK_FUNCTION(mu);
4140 Mutex mu; member in LogicalConditionalTryLock::Foo
4141 int a GUARDED_BY(mu);
4147 if (c && mu.TryLock()) { in test1()
4149 mu.Unlock(); in test1()
4154 bool b = mu.TryLock(); in test2()
4157 mu.Unlock(); in test2()
4162 if (c || !mu.TryLock()) in test3()
4165 mu.Unlock(); in test3()
4169 while (c && mu.TryLock()) { in test4()
4172 mu.Unlock(); in test4()
4178 if (newc() || !mu.TryLock()) in test5()
4181 mu.Unlock(); in test5()
4186 mu.Lock(); in test6()
4189 mu.Unlock(); in test6()
4190 } while (newc() && mu.TryLock()); in test6()
4194 for (bool b = mu.TryLock(); c && b;) { in test7()
4196 mu.Unlock(); in test7()
4201 if (c && newc() && mu.TryLock()) { in test8()
4203 mu.Unlock(); in test8()
4208 if (!(c && newc() && mu.TryLock())) in test9()
4211 mu.Unlock(); in test9()
4215 if (!(c || !mu.TryLock())) { in test10()
4217 mu.Unlock(); in test10()
4457 void foo(Mutex* mu) EXCLUSIVE_LOCKS_REQUIRED(mu);
4466 struct MuCell { Mutex* mu; }; member
4472 int b GUARDED_BY(mapCell["foo"].mu);
4481 mapCell["foo"].mu->Lock(); in test2()
4483 mapCell["foo"].mu->Unlock(); in test2()
4489 SmartPtr<Mutex> mu; member in AttributeExpressionCornerCases::PreciseSmartPtr
4490 int val GUARDED_BY(mu);
4493 a.mu->Lock(); in compare()
4496 a.mu->Unlock(); in compare()
4503 SmartPtr<Mutex> mu; member in AttributeExpressionCornerCases::SmartRedeclare
4504 int val GUARDED_BY(mu);
4506 void test() EXCLUSIVE_LOCKS_REQUIRED(mu);
4507 void test2() EXCLUSIVE_LOCKS_REQUIRED(mu.get());
4508 void test3() EXCLUSIVE_LOCKS_REQUIRED(mu.get());
4512 void SmartRedeclare::test() EXCLUSIVE_LOCKS_REQUIRED(mu.get()) { in test()
4516 void SmartRedeclare::test2() EXCLUSIVE_LOCKS_REQUIRED(mu) { in test2()
4565 Mutex mu; member in NegativeRequirements::Bar
4566 int a GUARDED_BY(mu);
4569 void baz() EXCLUSIVE_LOCKS_REQUIRED(!mu) { in baz()
4570 mu.Lock(); in baz()
4572 mu.Unlock(); in baz()
4578 Mutex mu; member in NegativeRequirements::Foo
4579 int a GUARDED_BY(mu);
4583 mu.Lock(); // warning? needs !mu? in foo()
4586 mu.Unlock(); in foo()
4593 void bar2() EXCLUSIVE_LOCKS_REQUIRED(!mu) { in bar2()
4597 void baz() EXCLUSIVE_LOCKS_REQUIRED(!mu) { in baz()
4598 mu.Lock(); in baz()
4600 mu.Unlock(); in baz()
4673 Mutex mu; member in AssertSharedExclusive::Foo
4674 int a GUARDED_BY(mu);
4676 void test() SHARED_LOCKS_REQUIRED(mu) { in test()
4677 mu.AssertHeld(); in test()
4693 Mutex mu; member in RangeBasedForAndReferences::Foo
4694 int a GUARDED_BY(mu);
4695 MyContainer<int> cntr GUARDED_BY(mu);
4696 MyStruct s GUARDED_BY(mu);
4697 int arr[10] GUARDED_BY(mu);
4778 Mutex mu; member in PassByRefTest::Bar
4779 Foo foo GUARDED_BY(mu);
4780 Foo foo2 GUARDED_BY(mu);
4781 Foo* foop PT_GUARDED_BY(mu);
4782 SmartPtr<Foo> foosp PT_GUARDED_BY(mu);
5066 Mutex mu; member in ScopedAdoptTest::Foo
5067 int a GUARDED_BY(mu);
5070 void test1() EXCLUSIVE_UNLOCK_FUNCTION(mu) { in test1()
5071 MutexLock slock(&mu, true); in test1()
5075 void test2() SHARED_UNLOCK_FUNCTION(mu) { in test2()
5076 ReaderMutexLock slock(&mu, true); in test2()
5080 void test3() EXCLUSIVE_LOCKS_REQUIRED(mu) { // expected-note {{mutex acquired here}} in test3()
5081 MutexLock slock(&mu, true); in test3()
5085 void test4() SHARED_LOCKS_REQUIRED(mu) { // expected-note {{mutex acquired here}} in test4()
5086 ReaderMutexLock slock(&mu, true); in test4()
5124 Mutex mu; member in TestReferenceNoThreadSafetyAnalysis::Bar
5125 int a GUARDED_BY(mu);
5126 Foo foo GUARDED_BY(mu);