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()
Definition: dynamic_thread_pool.cc:96
void Add(const std::function< void()> &callback) override
Definition: dynamic_thread_pool.cc:106
DynamicThreadPool(int reserve_threads)
Definition: dynamic_thread_pool.cc:78
Definition: thread_pool_interface.h:27
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24