--- innwebd/base.h 2004/07/02 11:22:00 1.1 +++ innwebd/base.h 2004/07/03 13:56:04 1.2 @@ -16,6 +16,7 @@ #include "afxdb.h" #include "winsock2.h" +#include ".\thread_pool.h" class base { @@ -25,8 +26,29 @@ public: virtual void configure(const char* innd_id, const char* innd_name, const char* innd_server, unsigned long innd_uid, const char* w_address, unsigned int w_port, const char* w_conn_str); int begin(void); int end(void); - bool IsRunning(void); + inline bool IsRunning(void) + { + return this->running; + } + inline base* GetParentThread(void) + { + return this->p_ParentThread; + } + inline void SetParentThread(base* p_ParentThread) + { + this->p_ParentThread = p_ParentThread; + } + inline thread_pool* GetThreadPool(void) + { + return this->p_ThreadPool; + } + inline void SetThreadPool(thread_pool* p_ThreadPool) + { + this->p_ThreadPool = p_ThreadPool; + } protected: + base* p_ParentThread; + thread_pool* p_ThreadPool; SOCKET s; SOCKADDR sockaddr; CDatabase Db;