Lines Matching refs:count
29 explicit CountTask(AtomicInteger* count) : count_(count), verbose_(false) {} in CountTask() argument
64 AtomicInteger count(0); in TEST_F() local
67 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
73 EXPECT_EQ(num_tasks, count.LoadSequentiallyConsistent()); in TEST_F()
79 AtomicInteger count(0); in TEST_F() local
82 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
86 EXPECT_EQ(0, count.LoadSequentiallyConsistent()); in TEST_F()
98 while (count.LoadSequentiallyConsistent() != num_tasks && in TEST_F()
107 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) in TreeTask() argument
109 count_(count), in TreeTask()
135 AtomicInteger count(0); in TEST_F() local
137 thread_pool.AddTask(self, new TreeTask(&thread_pool, &count, depth)); in TEST_F()
140 EXPECT_EQ((1 << depth) - 1, count.LoadSequentiallyConsistent()); in TEST_F()