X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fthread_pool_observer.hpp;h=f10a16f61909a9c60c698c200cd73744a98d19ab;hb=HEAD;hp=4fe5fd3eb2f77261cbbe1ff921c382d5cf39c15f;hpb=5ea0250959340c9cde8603e99c8f967eadf1990f;p=metaproxy-moved-to-github.git diff --git a/src/thread_pool_observer.hpp b/src/thread_pool_observer.hpp index 4fe5fd3..f10a16f 100644 --- a/src/thread_pool_observer.hpp +++ b/src/thread_pool_observer.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2012 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -38,7 +38,8 @@ namespace metaproxy_1 { class Worker; public: ThreadPoolSocketObserver(yazpp_1::ISocketObservable *obs, - int no_threads); + unsigned min_threads, unsigned max_threads, + unsigned stack_size); virtual ~ThreadPoolSocketObserver(); void put(IThreadPoolMsg *m); void cleanup(IThreadPoolMsg *m, void *info); @@ -46,6 +47,7 @@ namespace metaproxy_1 { void run(void *p); void get_thread_info(int &tbusy, int &total); private: + void add_worker(void); void socketNotify(int event); boost::scoped_ptr m_p;