X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/5d99dbf06a14904944f5593c63705934bdfdcfb7..6623ac357055b95ce4fc0cbe9c5dc15524a9f20c:/rpc/thr_pool.h diff --git a/rpc/thr_pool.h b/rpc/thr_pool.h index 5b95cba..28c5236 100644 --- a/rpc/thr_pool.h +++ b/rpc/thr_pool.h @@ -6,19 +6,19 @@ typedef function job_t; -class ThrPool { - public: - ThrPool(size_t sz, bool blocking=true); - ~ThrPool(); +class thread_pool { + public: + thread_pool(size_t sz, bool blocking=true); + ~thread_pool(); - bool addJob(const job_t &j); + bool addJob(const job_t &j); - private: + private: size_t nthreads_; - bool blockadd_; + bool blockadd_; - fifo jobq_; - vector th_; + fifo jobq_; + vector th_; void do_worker(); };