Lines Matching refs:thread_pool
63 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() local
67 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
69 thread_pool.StartWorkers(self); in TEST_F()
71 thread_pool.Wait(self, true, false); in TEST_F()
78 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() local
82 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
88 thread_pool.StartWorkers(self); in TEST_F()
90 thread_pool.StopWorkers(self); in TEST_F()
92 thread_pool.AddTask(self, new CountTask(&bad_count)); in TEST_F()
97 thread_pool.StartWorkers(self); in TEST_F()
102 thread_pool.StopWorkers(self); in TEST_F()
107 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) in TreeTask() argument
108 : thread_pool_(thread_pool), in TreeTask()
134 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() local
137 thread_pool.AddTask(self, new TreeTask(&thread_pool, &count, depth)); in TEST_F()
138 thread_pool.StartWorkers(self); in TEST_F()
139 thread_pool.Wait(self, true, false); in TEST_F()