mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2025-01-05 17:42:24 +08:00
31 lines
491 B
C++
31 lines
491 B
C++
#ifndef __PUSH_THREAD_H
|
|
#define __PUSH_THREAD_H
|
|
|
|
#include "servant/Application.h"
|
|
|
|
class PushUser
|
|
{
|
|
public:
|
|
static map<string, CurrentPtr> pushUser;
|
|
static TC_ThreadMutex mapMutex;
|
|
};
|
|
|
|
class PushInfoThread : public TC_Thread, public TC_ThreadLock
|
|
{
|
|
public:
|
|
PushInfoThread():_bTerminate(false),_iId(0){}
|
|
~PushInfoThread();
|
|
|
|
virtual void run();
|
|
|
|
void terminate();
|
|
|
|
void setPushInfo(const string &sInfo);
|
|
|
|
private:
|
|
bool _bTerminate;
|
|
unsigned int _iId;
|
|
string _sPushInfo;
|
|
};
|
|
#endif
|