Lines Matching refs:Foo
524 LateFoo Foo; member in LateBar
571 BarA.Foo.a = 2; // \ in late_bad_2()
579 BarA.Foo.mu.Lock(); in late_bad_3()
583 BarA.Foo.mu.Unlock(); in late_bad_3()
588 BarA.Foo.mu.Lock(); in late_bad_4()
592 BarA.Foo.mu.Unlock(); in late_bad_4()
890 class Foo { class
895 int Foo::method1(int i) { in method1()
911 Foo a; in main()
927 class Foo { class
935 Foo *foo;
946 class Foo { class
953 Foo *foo_;
971 class Foo { class
978 Foo *foo;
1000 struct Foo { Foo &operator<< (bool) {return *this;} }; in operator <<() struct
1001 Foo &getFoo();
1002 struct Bar { Foo &func () {return getFoo();} }; in func()
1003 struct Bas { void operator& (Foo &) {} }; in operator &()
1048 class Foo { class
1056 int Foo::method1(int i) in method1()
1063 Foo a; in main()
1085 class Foo { class
1101 Foo<int> *foo; in main()
1112 struct Foo;
1188 class Foo { class
1199 int Foo::foo() in foo()
1207 void Foo::bar() in bar()
1223 Foo f1, *f2; in main()
1309 class Foo { class
1315 void Func(Foo* child) LOCKS_EXCLUDED(lock_) { in Func()
1316 Foo *new_foo = new Foo; in Func()
1336 Foo *x;
1339 Foo *child = new Foo; in main()
1348 class Foo { class
1354 void Func(Foo* child) LOCKS_EXCLUDED(lock_);
1358 void Foo::Func(Foo* child) { in Func()
1359 Foo *new_foo = new Foo; in Func()
1372 void Foo::bar(int y) { in bar()
1377 Foo *x;
1380 Foo *child = new Foo; in main()
1388 class Foo { class
1408 Foo *foo;
1455 class Foo { class
1463 int Foo::method1(int i) { in method1()
1469 Foo a; in main()
1497 class Foo { class
1538 class Foo { class
1540 Foo() __attribute__((exclusive_lock_function(fooMu))) { } in Foo() function in constructor_destructor_tests::Foo
1541 ~Foo() __attribute__((unlock_function(fooMu))) { } in ~Foo()
1545 Foo foo; in fooTest()
1637 class Foo { class
1643 Foo fooObj;
1940 class Foo { class
1945 virtual void foo1(Foo *f_declared) EXCLUSIVE_LOCKS_REQUIRED(f_declared->mu_);
1949 void Foo::foo1(Foo *f_defined) { in foo1()
1954 Foo myfoo; in test()
1997 class Foo { class
2001 void foo3(Foo *other);
2023 void Foo::foo1() NO_THREAD_SAFETY_ANALYSIS { in foo1()
2027 void Foo::foo2() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo2()
2031 void Foo::foo3(Foo *other) EXCLUSIVE_LOCKS_REQUIRED(other->mu_) { in foo3()
2036 void Foo::fooT1(const T& dummy1) EXCLUSIVE_LOCKS_REQUIRED(mu_) { in fooT1()
2047 void fooF1(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { in fooF1()
2051 void fooF2(Foo *f);
2052 void fooF2(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { in fooF2()
2056 void fooF3(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_);
2057 void fooF3(Foo *f) { in fooF3()
2068 Foo myFoo; in test()
2156 class Foo;
2158 class Foo { class
2187 class Foo { class
2210 class Foo { class
2223 class Foo { class
2232 Foo* f;
2234 Foo& getFoo() { return *f; } in getFoo()
2235 Foo& getFoo2(int c) { return *f; } in getFoo2()
2236 Foo& getFoo3(int c, int d) { return *f; } in getFoo3()
2238 Foo& getFooey() { return *f; } in getFooey()
2241 Foo& getBarFoo(Bar &bar, int c) { return bar.getFoo2(c); } in getBarFoo()
2244 Foo foo; in test()
2245 Foo *fooArray; in test()
2320 class Foo { class
2340 class Foo { class
2344 void foo2(Foo* f) EXCLUSIVE_LOCKS_REQUIRED(mu_, f->mu_);
2346 static void sfoo(Foo* f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_);
2352 static Mutex* getMu(Foo* f) LOCK_RETURNED(f->mu_);
2357 void test1(Foo* f1, Foo* f2) { in test1()
2363 …Foo::sfoo(f1); // expected-warning {{calling function 'sfoo' requires exclusive lock on 'f1->mu_… in test1()
2373 Foo::getMu(f2)->Lock(); in test1()
2375 Foo::getMu(f2)->Unlock(); in test1()
2377 Foo::sfoo(f1); in test1()
2383 Mutex* getFooMu(Foo* f) LOCK_RETURNED(Foo::getMu(f));
2385 class Bar : public Foo {
2449 class Foo { class
2462 void Foo::test1() { in test1()
2467 void Foo::test2() { in test2()
2474 void Foo::test3() { in test3()
2481 void Foo::test4() { in test4()
2487 void Foo::test5() { in test5()
2502 class Foo { class
2511 bool Foo::lockBoth() { in lockBoth()
2532 class Foo { class
2542 void Foo::foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_) { in foo1()
2546 int Foo::foo2() SHARED_LOCKS_REQUIRED(mu_) { in foo2()
2556 class Foo { class
2587 class Foo { class
2643 class Foo { class
2652 void Foo::test() { in test()
2666 class Foo { class
2687 void Foo::test0() { in test0()
2693 void Foo::test1() { in test1()
2701 void Foo::test2() { in test2()
2710 void Foo::test3() { in test3()
2719 void Foo::test4() { in test4()
2727 void Foo::test5() { in test5()
2735 void Foo::test6() { in test6()
2744 void Foo::test7() { in test7()
2772 void Foo::test8() { in test8()
2782 SmartPtr<Foo> foo;
2829 class LOCKABLE Foo { class
2858 void Foo::lock() EXCLUSIVE_LOCK_FUNCTION() { } in lock()
2859 void Foo::unlock() UNLOCK_FUNCTION() { } in unlock()
2861 void Foo::lock1() EXCLUSIVE_LOCK_FUNCTION(mu1_) { in lock1()
2865 void Foo::slock1() SHARED_LOCK_FUNCTION(mu1_) { in slock1()
2869 void Foo::lock3() EXCLUSIVE_LOCK_FUNCTION(mu1_, mu2_, mu3_) { in lock3()
2875 void Foo::locklots() in locklots()
2883 void Foo::unlock1() UNLOCK_FUNCTION(mu1_) { in unlock1()
2887 void Foo::unlock3() UNLOCK_FUNCTION(mu1_, mu2_, mu3_) { in unlock3()
2893 void Foo::unlocklots() in unlocklots()
2903 Foo foo; in test0()
2915 Foo foo; in test1()
2929 Foo foo; in test2()
2944 Foo foo; in test3()
2968 Foo foo; in testlots()
2996 class Foo { class
3010 void Foo::test1() { in test1()
3078 void Foo::test2() { in test2()
3181 class Foo { class
3191 class Bar : public Foo {
3193 void bar(Foo* f) { in bar()
3252 struct Foo { struct
3257 Foo* GetAndLockFoo(const MyString& s)
3258 EXCLUSIVE_TRYLOCK_FUNCTION(true, &Foo::mu_);
3261 Foo* lt = GetAndLockFoo("foo"); in test()
3272 class Foo { class
3369 class Foo { class
3378 Foo* foo;
3379 Bar(Foo* f) : foo(f) { } in Bar()
3382 Foo* foo;
3383 Nested(Foo* f) : foo(f) { } in Nested()
3385 void unlockFoo() UNLOCK_FUNCTION(&Foo::mu_);
3408 class Foo { class
3412 Foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in EXCLUSIVE_LOCKS_REQUIRED()
3413 ~Foo() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in EXCLUSIVE_LOCKS_REQUIRED()
3430 Foo f; // expected-warning {{calling function 'Foo' requires exclusive lock on 'mu_'}} in test1()
3525 class Foo { class
3534 void Foo::elr(Cell<T>* c1) { } in elr()
3536 void Foo::test() { in test()
3632 class Foo { class
3661 void Foo::foo1() { in foo1()
3666 void Foo::foo2() { in foo2()
3670 void Foo::foo3() { } in foo3()
3671 void Foo::lock() { mu1_.Lock(); mu2_.Lock(); } in lock()
3672 void Foo::readerlock() { mu1_.ReaderLock(); mu2_.ReaderLock(); } in readerlock()
3673 void Foo::unlock() { mu1_.Unlock(); mu2_.Unlock(); } in unlock()
3674 bool Foo::trylock() { return true; } in trylock()
3675 bool Foo::readertrylock() { return true; } in readertrylock()
3678 void Foo::test() { in test()
3752 class Foo { class
3841 class Foo { class
3856 Foo foo GUARDED_BY(mu_);
3857 Foo* foop PT_GUARDED_BY(mu_);
3893 class Foo { class
3938 class Foo { class
3996 class Foo { class