Lines Matching refs:count
30 explicit CountTask(AtomicInteger* count) : count_(count), verbose_(false) {} in CountTask() argument
65 AtomicInteger count(0); in TEST_F() local
68 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
74 EXPECT_EQ(num_tasks, count.load(std::memory_order_seq_cst)); in TEST_F()
80 AtomicInteger count(0); in TEST_F() local
83 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
87 EXPECT_EQ(0, count.load(std::memory_order_seq_cst)); in TEST_F()
106 AtomicInteger count(0); in TEST_F() local
109 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
127 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) in TreeTask() argument
129 count_(count), in TreeTask()
155 AtomicInteger count(0); in TEST_F() local
157 thread_pool.AddTask(self, new TreeTask(&thread_pool, &count, depth)); in TEST_F()
160 EXPECT_EQ((1 << depth) - 1, count.load(std::memory_order_seq_cst)); in TEST_F()