WorkThread.h 419 B

12345678910111213141516171819202122
  1. #ifndef __EVENTTHREAD_H__
  2. #define __EVENTTHREAD_H__
  3. #include "Thread.h"
  4. typedef struct _SEvent* LPSEVENT;
  5. class CThreadPool;
  6. class CWorkThread : public CThreadBase
  7. {
  8. public:
  9. CWorkThread();
  10. virtual ~CWorkThread();
  11. int AddEventItem(IN CONST LPSEVENT lpEvent, IN CONST CThreadPool* p);
  12. virtual THREADSTATUS Run();
  13. private:
  14. LPSEVENT m_lpEvent;
  15. CThreadPool* m_pThreadPool;
  16. };
  17. #endif //#ifndef __EVENTTHREAD_H__