isearch/comm/stat/StatThread.h
2021-03-19 18:38:34 +08:00

24 lines
516 B
C++

#ifndef __H_STAT_THREAD___
#define __H_STAT_THREAD___
#include "StatMgr.h"
class CStatThread: public CStatManager
{
public: // public method
CStatThread(void);
~CStatThread(void);
public: // background access
int StartBackgroundThread(void);
int StopBackgroundThread(void);
int InitStatInfo(const char *name, const char *fn) { return CStatManager::InitStatInfo(name, fn, 0); }
private:
pthread_t threadid;;
pthread_mutex_t wakeLock;;
static void *__threadentry(void *);
void ThreadLoop(void);
};
#endif