Lines Matching refs:LockTest
105 class LockTest {
107 LockTest() : n_(), locks_() {}
114 ~LockTest() {
228 RunThreads(&LockTest::Lock_0_1<true>, &LockTest::Lock_1_0<true>);
244 RunThreads(&LockTest::Lock1_Loop_0, &LockTest::Lock1_Loop_1,
245 &LockTest::Lock1_Loop_2);
314 RunThreads(&LockTest::Test10_Thread1, &LockTest::Test10_Thread2,
315 &LockTest::Test10_Thread3, &LockTest::Test10_Thread4);
340 RunThreads(&LockTest::Test11_Thread1, &LockTest::Test11_Thread2,
341 &LockTest::Test11_Thread3, &LockTest::Test11_Thread4);
369 RunThreads(&LockTest::Test12_Thread, &LockTest::Test12_Thread,
370 &LockTest::Test12_Thread, &LockTest::Test12_Thread);
392 RunThreads(&LockTest::Test13_Thread, &LockTest::Test13_Thread,
393 &LockTest::Test13_Thread, &LockTest::Test13_Thread);
415 RunThreads(&LockTest::CreateAndDestroyLocksLoop,
416 &LockTest::CreateAndDestroyLocksLoop,
417 &LockTest::CreateAndDestroyLocksLoop,
418 &LockTest::CreateAndDestroyLocksLoop);
438 // CHECK: LockTest::Acquire1
439 // CHECK-NEXT: LockTest::Acquire_0_then_1
441 // CHECK-SECOND: LockTest::Acquire0
442 // CHECK-SECOND-NEXT: LockTest::Acquire_0_then_1
444 // CHECK: LockTest::Acquire0
445 // CHECK-NEXT: LockTest::Acquire_1_then_0
447 // CHECK-SECOND: LockTest::Acquire1
448 // CHECK-SECOND-NEXT: LockTest::Acquire_1_then_0
462 // CHECK: LockTest::Acquire1
463 // CHECK-NEXT: LockTest::Acquire_0_then_1
464 // CHECK: LockTest::Acquire2
465 // CHECK-NEXT: LockTest::Acquire_1_then_2
466 // CHECK: LockTest::Acquire0
467 // CHECK-NEXT: LockTest::Acquire_2_then_0
490 RunThreads(&LockTest::Test18_Thread, &LockTest::Test18_Thread,
491 &LockTest::Test18_Thread, &LockTest::Test18_Thread);
569 // LockTest Member function callback.
571 void (LockTest::*f)();
572 LockTest *lt;
582 void RunThreads(void (LockTest::*f1)(), void (LockTest::*f2)(),
583 void (LockTest::*f3)() = 0, void (LockTest::*f4)() = 0) {
604 LockTest().Test1();
605 LockTest().Test2();
606 LockTest().Test3();
607 LockTest().Test4();
608 LockTest().Test5();
609 LockTest().Test6();
610 LockTest().Test7();
611 LockTest().Test8();
612 LockTest().Test9();
613 LockTest().Test10();
614 LockTest().Test11();
615 LockTest().Test12();
616 LockTest().Test13();
617 LockTest().Test14();
618 LockTest().Test15();
619 LockTest().Test16();
620 LockTest().Test17();
621 LockTest().Test18();
622 LockTest().Test19();