20#include "google/protobuf/stubs/callback.h"
21#include "google/protobuf/stubs/common.h"
31class ThreadPoolWorker;
41 void Add(google::protobuf::Closure *closure);
42 void Add(
const std::vector<google::protobuf::Closure *> &closures);
54 std::vector<ThreadPoolWorker *> workers_;
56 int num_available_workers_;
66 :
Thread(true,
"ThreadPoolWorker"), thread_pool_(thread_pool) {}
ThreadPoolWorker & operator=(const ThreadPoolWorker &)=delete
ThreadPoolWorker(const ThreadPoolWorker &)=delete
ThreadPoolWorker(ThreadPool *thread_pool)
virtual ~ThreadPoolWorker()
ThreadPool(const ThreadPool &)=delete
int num_available_workers() const
void Add(const std::vector< google::protobuf::Closure * > &closures)
ThreadPool & operator=(const ThreadPool &)=delete
void Add(google::protobuf::Closure *closure)