19 #ifndef GRPC_INTERNAL_CPP_DYNAMIC_THREAD_POOL_H
20 #define GRPC_INTERNAL_CPP_DYNAMIC_THREAD_POOL_H
39 void Add(
const std::function<
void()>& callback)
override;
56 std::queue<std::function<void()>> callbacks_;
60 std::list<DynamicThread*> dead_threads_;
63 static void ReapThreads(std::list<DynamicThread*>* tlist);
Definition: dynamic_thread_pool.h:34
~DynamicThreadPool() override
Definition: dynamic_thread_pool.cc:97
void Add(const std::function< void()> &callback) override
Definition: dynamic_thread_pool.cc:107
DynamicThreadPool(int reserve_threads)
Definition: dynamic_thread_pool.cc:79
Definition: thread_pool_interface.h:27
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33