Lines Matching refs:iterations
68 int iterations; member
94 for (int i = 0; i != cxt->iterations; i++) { in TestMu()
103 for (int i = 0; i != cxt->iterations; i++) { in TestTry()
115 for (int i = 0; i != cxt->iterations; i++) { in TestR20ms()
124 for (int i = 0; i != cxt->iterations; i++) { in TestRW()
132 for (int i = 0; i != cxt->iterations; i++) { in TestRW()
148 return cxt->g0 == this->target || cxt->g0 == cxt->iterations; in MyTurn()
157 while (cxt->g0 < cxt->iterations) { in TestAwait()
161 if (cxt->g0 < cxt->iterations) { in TestAwait()
173 while (cxt->g0 < cxt->iterations) { in TestSignalAll()
174 while (cxt->g0 != target && cxt->g0 != cxt->iterations) { in TestSignalAll()
177 if (cxt->g0 < cxt->iterations) { in TestSignalAll()
191 while (cxt->g0 < cxt->iterations) { in TestSignal()
192 while (cxt->g0 != target && cxt->g0 != cxt->iterations) { in TestSignal()
195 if (cxt->g0 < cxt->iterations) { in TestSignal()
208 while (cxt->g0 < cxt->iterations) { in TestCVTimeout()
209 while (cxt->g0 != target && cxt->g0 != cxt->iterations) { in TestCVTimeout()
212 if (cxt->g0 < cxt->iterations) { in TestCVTimeout()
224 ABSL_RAW_CHECK(cxt->iterations == 1, "TestTime should only use 1 iteration"); in TestTime()
357 int threads, int iterations, int operations) { in RunTestCommon() argument
364 cxt->iterations = iterations; in RunTestCommon()
382 int iterations, int operations) { in RunTest() argument
384 return RunTestCommon(&cxt, test, threads, iterations, operations); in RunTest()
393 int threads, int iterations, in RunTestWithInvariantDebugging() argument
400 int ret = RunTestCommon(&cxt, test, threads, iterations, operations); in RunTestWithInvariantDebugging()
1586 int iterations = ScaleIterations(10000000) / threads; local
1587 int operations = threads * iterations;
1588 EXPECT_EQ(RunTest(&TestMu, threads, iterations, operations), operations);
1590 iterations = std::min(iterations, 10);
1591 operations = threads * iterations;
1592 EXPECT_EQ(RunTestWithInvariantDebugging(&TestMu, threads, iterations,
1600 int iterations = 1000000 / threads; local
1601 int operations = iterations * threads;
1602 EXPECT_EQ(RunTest(&TestTry, threads, iterations, operations), operations);
1604 iterations = std::min(iterations, 10);
1605 operations = threads * iterations;
1606 EXPECT_EQ(RunTestWithInvariantDebugging(&TestTry, threads, iterations,
1614 int iterations = 100; local
1615 int operations = iterations * threads;
1616 EXPECT_EQ(RunTest(&TestR20ms, threads, iterations, operations), 0);
1621 int iterations = ScaleIterations(20000000) / threads; local
1622 int operations = iterations * threads;
1623 EXPECT_EQ(RunTest(&TestRW, threads, iterations, operations), operations / 2);
1625 iterations = std::min(iterations, 10);
1626 operations = threads * iterations;
1627 EXPECT_EQ(RunTestWithInvariantDebugging(&TestRW, threads, iterations,
1635 int iterations = ScaleIterations(500000); local
1636 int operations = iterations;
1637 EXPECT_EQ(RunTest(&TestAwait, threads, iterations, operations), operations);
1642 int iterations = 200000 / threads; local
1643 int operations = iterations;
1644 EXPECT_EQ(RunTest(&TestSignalAll, threads, iterations, operations),
1650 int iterations = 200000; local
1651 int operations = iterations;
1652 EXPECT_EQ(RunTest(&TestSignal, threads, iterations, operations), operations);
1657 int iterations = 1000; local
1658 int operations = iterations;
1659 EXPECT_EQ(RunTest(&TestCVTimeout, threads, iterations, operations),
1665 int iterations = 1; local
1666 EXPECT_EQ(RunTest(&TestCVTime, threads, iterations, 1),
1667 threads * iterations);
1672 int iterations = 1; local
1673 EXPECT_EQ(RunTest(&TestMuTime, threads, iterations, 1), threads * iterations);