X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/16e7c282c6fcec8189425bd15ec9e8a4a0ee857d..869c0cc91d8f6b2bb80026616372d16450b64d9f:/rpc/thr_pool.h diff --git a/rpc/thr_pool.h b/rpc/thr_pool.h index 5950a9c..9525032 100644 --- a/rpc/thr_pool.h +++ b/rpc/thr_pool.h @@ -4,21 +4,21 @@ #include "types.h" #include "fifo.h" -typedef function job_t; +typedef std::function job_t; -class ThrPool { +class thread_pool { public: - ThrPool(size_t sz, bool blocking=true); - ~ThrPool(); + thread_pool(size_t sz, bool blocking=true); + ~thread_pool(); - bool addJob(const job_t &j); + bool addJob(const job_t & j); private: size_t nthreads_; bool blockadd_; fifo jobq_; - vector th_; + std::vector th_; void do_worker(); };