|
metaproxy 1.22.1
|
#include <thread_pool_observer.hpp>


Classes | |
| class | Rep |
| class | Worker |
Public Member Functions | |
| ThreadPoolSocketObserver (yazpp_1::ISocketObservable *obs, unsigned min_threads, unsigned max_threads, unsigned stack_size) | |
| virtual | ~ThreadPoolSocketObserver () |
| void | put (IThreadPoolMsg *m) |
| void | cleanup (IThreadPoolMsg *m, void *info) |
| IThreadPoolMsg * | get () |
| void | run (void *p) |
| void | get_thread_info (int &tbusy, int &total) |
Private Member Functions | |
| void | add_worker (void) |
| void | socketNotify (int event) |
Private Attributes | |
| boost::scoped_ptr< Rep > | m_p |
Definition at line 36 of file thread_pool_observer.hpp.
| ThreadPoolSocketObserver::ThreadPoolSocketObserver | ( | yazpp_1::ISocketObservable * | obs, |
| unsigned | min_threads, | ||
| unsigned | max_threads, | ||
| unsigned | stack_size | ||
| ) |
Definition at line 102 of file thread_pool_observer.cpp.
References add_worker(), and m_p.

|
virtual |
|
private |
Definition at line 139 of file thread_pool_observer.cpp.
References m_p.
Referenced by put(), and ThreadPoolSocketObserver().
| void ThreadPoolSocketObserver::cleanup | ( | IThreadPoolMsg * | m, |
| void * | info | ||
| ) |
Definition at line 247 of file thread_pool_observer.cpp.
References m_p.
| IThreadPoolMsg * metaproxy_1::ThreadPoolSocketObserver::get | ( | ) |
| void ThreadPoolSocketObserver::get_thread_info | ( | int & | tbusy, |
| int & | total | ||
| ) |
| void ThreadPoolSocketObserver::put | ( | IThreadPoolMsg * | m | ) |
Definition at line 264 of file thread_pool_observer.cpp.
References add_worker(), m_p, and metaproxy_1::queue_size_per_thread.

| void ThreadPoolSocketObserver::run | ( | void * | p | ) |
Definition at line 207 of file thread_pool_observer.cpp.
References metaproxy_1::IThreadPoolMsg::handle(), and m_p.
Referenced by metaproxy_1::ThreadPoolSocketObserver::Worker::operator()().

|
private |
Definition at line 151 of file thread_pool_observer.cpp.
References m_p, and metaproxy_1::IThreadPoolMsg::result().

|
private |
Definition at line 52 of file thread_pool_observer.hpp.
Referenced by add_worker(), cleanup(), get_thread_info(), put(), run(), socketNotify(), ThreadPoolSocketObserver(), and ~ThreadPoolSocketObserver().