Lines Matching defs:ThreadPoolExecutor
49 class ThreadPoolExecutor : public Executor {
51 explicit ThreadPoolExecutor(ThreadPoolStrategy S = hardware_concurrency()) {
83 ~ThreadPoolExecutor() override {
94 static void *call() { return new ThreadPoolExecutor(strategy); }
97 static void call(void *Ptr) { ((ThreadPoolExecutor *)Ptr)->stop(); }
136 // The ManagedStatic enables the ThreadPoolExecutor to be stopped via
143 // The ThreadPoolExecutor will only be destroyed when the static unique_ptr to
144 // it is destroyed, i.e. in a normal full exit. The ThreadPoolExecutor
154 static ManagedStatic<ThreadPoolExecutor, ThreadPoolExecutor::Creator,
155 ThreadPoolExecutor::Deleter>
157 static std::unique_ptr<ThreadPoolExecutor> Exec(&(*ManagedExec));