Add ThreadPoolSocketObserver::get_thread_info
[metaproxy-moved-to-github.git] / src / thread_pool_observer.cpp
index ce37235..e9dd20c 100644 (file)
@@ -166,6 +166,12 @@ void ThreadPoolSocketObserver::socketNotify(int event)
     }
 }
 
+void ThreadPoolSocketObserver::get_thread_info(int &tbusy, int &total)
+{
+    tbusy = m_p->m_no_threads - m_p->m_no_threads_waiting;
+    total = m_p->m_no_threads;
+}
+
 void ThreadPoolSocketObserver::run(void *p)
 {
     while(1)