Home | History | Annotate | Download | only in runtime

Lines Matching refs:thread_pool

22 #include "thread_pool.h"
62 ThreadPool thread_pool(num_threads);
66 thread_pool.AddTask(self, new CountTask(&count));
68 thread_pool.StartWorkers(self);
70 thread_pool.Wait(self, true, false);
77 ThreadPool thread_pool(num_threads);
81 thread_pool.AddTask(self, new CountTask(&count));
87 thread_pool.StartWorkers(self);
89 thread_pool.StopWorkers(self);
91 thread_pool.AddTask(self, new CountTask(&bad_count));
96 thread_pool.StartWorkers(self);
100 thread_pool.StopWorkers(self);
105 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth)
106 : thread_pool_(thread_pool),
132 ThreadPool thread_pool(num_threads);
135 thread_pool.AddTask(self, new TreeTask(&thread_pool, &count, depth));
136 thread_pool.StartWorkers(self);
137 thread_pool.Wait(self, true, false);