Home | History | Annotate | Download | only in runtime

Lines Matching refs:num_threads

55   static int32_t num_threads;
58 int32_t BarrierTest::num_threads = 4;
63 ThreadPool thread_pool("Barrier test thread pool", num_threads);
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread.
68 for (int32_t i = 0; i < num_threads; ++i) {
72 while (count1.LoadRelaxed() != num_threads) {
81 // Both counts should be equal to num_threads now.
82 EXPECT_EQ(count1.LoadRelaxed(), num_threads);
83 EXPECT_EQ(count2.LoadRelaxed(), num_threads);
114 ThreadPool thread_pool("Barrier test thread pool", num_threads);
117 const int32_t num_tasks = num_threads * 4;