projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ThreadPoolSocketObserver::get_thread_info
[metaproxy-moved-to-github.git]
/
src
/
thread_pool_observer.hpp
diff --git
a/src/thread_pool_observer.hpp
b/src/thread_pool_observer.hpp
index
52f3d79
..
4fe5fd3
100644
(file)
--- a/
src/thread_pool_observer.hpp
+++ b/
src/thread_pool_observer.hpp
@@
-28,8
+28,9
@@
namespace metaproxy_1 {
class IThreadPoolMsg {
public:
virtual IThreadPoolMsg *handle() = 0;
class IThreadPoolMsg {
public:
virtual IThreadPoolMsg *handle() = 0;
- virtual void result() = 0;
+ virtual void result(const char *info) = 0;
virtual ~IThreadPoolMsg();
virtual ~IThreadPoolMsg();
+ virtual bool cleanup(void *info) = 0;
};
class ThreadPoolSocketObserver : public yazpp_1::ISocketObserver {
};
class ThreadPoolSocketObserver : public yazpp_1::ISocketObserver {
@@
-40,8
+41,10
@@
namespace metaproxy_1 {
int no_threads);
virtual ~ThreadPoolSocketObserver();
void put(IThreadPoolMsg *m);
int no_threads);
virtual ~ThreadPoolSocketObserver();
void put(IThreadPoolMsg *m);
+ void cleanup(IThreadPoolMsg *m, void *info);
IThreadPoolMsg *get();
void run(void *p);
IThreadPoolMsg *get();
void run(void *p);
+ void get_thread_info(int &tbusy, int &total);
private:
void socketNotify(int event);
boost::scoped_ptr<Rep> m_p;
private:
void socketNotify(int event);
boost::scoped_ptr<Rep> m_p;