virtual IThreadPoolMsg *handle() = 0;
virtual void result(const char *info) = 0;
virtual ~IThreadPoolMsg();
+ virtual bool cleanup(void *info) = 0;
};
class ThreadPoolSocketObserver : public yazpp_1::ISocketObserver {
int no_threads);
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:
void socketNotify(int event);
boost::scoped_ptr<Rep> m_p;