H A D | mutex_test.cc | 88 TestContext *cxt = static_cast<TestContext *>(v); in CheckSumG0G1() local 89 ABSL_RAW_CHECK(cxt->g0 == -cxt->g1, "Error in CheckSumG0G1"); in CheckSumG0G1() 93 static void TestMu(TestContext *cxt, int c) { in TestMu() argument 94 for (int i = 0; i != cxt->iterations; i++) { in TestMu() 95 absl::MutexLock l(&cxt->mu); in TestMu() 96 int a = cxt->g0 + 1; in TestMu() 97 cxt->g0 = a; in TestMu() 98 cxt->g1--; in TestMu() 102 static void TestTry(TestContext *cxt, in argument 114 TestR20ms(TestContext *cxt, int c) TestR20ms() argument 122 TestRW(TestContext *cxt, int c) TestRW() argument 142 TestContext *cxt; global() member 147 TestContext *cxt = this->cxt; MyTurn() local 151 TestAwait(TestContext *cxt, int c) TestAwait() argument 169 TestSignalAll(TestContext *cxt, int c) TestSignalAll() argument 186 TestSignal(TestContext *cxt, int c) TestSignal() argument 204 TestCVTimeout(TestContext *cxt, int c) TestCVTimeout() argument 221 G0GE2(TestContext *cxt) G0GE2() argument 223 TestTime(TestContext *cxt, int c, bool use_cv) TestTime() argument 340 TestMuTime(TestContext *cxt, int c) TestMuTime() argument 342 TestCVTime(TestContext *cxt, int c) TestCVTime() argument 356 RunTestCommon(TestContext *cxt, void (*test)(TestContext *cxt, int), int threads, int iterations, int operations) RunTestCommon() argument 381 RunTest(void (*test)(TestContext *cxt, int), int threads, int iterations, int operations) RunTest() argument 383 TestContext cxt; RunTest() local 392 RunTestWithInvariantDebugging(void (*test)(TestContext *cxt, int), int threads, int iterations, int operations, void (*invariant)(void *)) RunTestWithInvariantDebugging() argument 398 TestContext cxt; RunTestWithInvariantDebugging() local [all...] |