diff --git a/include/transport/ThreadPool.h b/include/transport/ThreadPool.h index 95035b4d127d8736ce4790cb36e065fe2dd03db6..2760a4b0222500b182a7b97005eb2297bbd35c01 100644 --- a/include/transport/ThreadPool.h +++ b/include/transport/ThreadPool.h @@ -56,8 +56,8 @@ class ThreadPool boost::mutex criticalregion; Swift::EventLoop *loop; - boost::signals2::signal < void () > onWorkerAvailable; - + boost::signals2::signal < void () > onWorkerAvailable; + public: ThreadPool(Swift::EventLoop *loop, int maxthreads); ~ThreadPool(); @@ -68,6 +68,7 @@ class ThreadPool void scheduleFromQueue(); int getFreeThread(); void releaseThread(int i); + void workerBody(Thread *t, int wid); }; }