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