34 #ifndef GRPCXX_DYNAMIC_THREAD_POOL_H
35 #define GRPCXX_DYNAMIC_THREAD_POOL_H
63 std::unique_ptr<grpc::thread> thd_;
70 std::queue<std::function<void()>> callbacks_;
74 std::list<DynamicThread*> dead_threads_;
77 static void ReapThreads(std::list<DynamicThread*>* tlist);
82 #endif // GRPCXX_DYNAMIC_THREAD_POOL_H
Definition: sync_no_cxx11.h:45
#define GRPC_FINAL
Definition: config.h:71
Definition: thread_pool_interface.h:42
DynamicThreadPool(int reserve_threads)
Definition: dynamic_thread_pool.cc:87
Definition: sync_no_cxx11.h:84
void Add(const std::function< void()> &callback) GRPC_OVERRIDE
Definition: dynamic_thread_pool.cc:113
~DynamicThreadPool()
Definition: dynamic_thread_pool.cc:103
Definition: dynamic_thread_pool.h:49
#define GRPC_OVERRIDE
Definition: config.h:77