PushThread.h 491 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __PUSH_THREAD_H
  2. #define __PUSH_THREAD_H
  3. #include "servant/Application.h"
  4. class PushUser
  5. {
  6. public:
  7. static map<string, CurrentPtr> pushUser;
  8. static TC_ThreadMutex mapMutex;
  9. };
  10. class PushInfoThread : public TC_Thread, public TC_ThreadLock
  11. {
  12. public:
  13. PushInfoThread():_bTerminate(false),_iId(0){}
  14. ~PushInfoThread();
  15. virtual void run();
  16. void terminate();
  17. void setPushInfo(const string &sInfo);
  18. private:
  19. bool _bTerminate;
  20. unsigned int _iId;
  21. string _sPushInfo;
  22. };
  23. #endif