TestPushThread.h 486 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __TEST_PUSH_THREAD_H
  2. #define __TEST_PUSH_THREAD_H
  3. #include "servant/Application.h"
  4. class PushUser
  5. {
  6. public:
  7. static map<string, TarsCurrentPtr> 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. virtual void run();
  15. void terminate();
  16. void setPushInfo(const string &sInfo);
  17. private:
  18. bool _bTerminate;
  19. unsigned int _iId;
  20. string _sPushInfo;
  21. };
  22. #endif