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