You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
783 B
C++
34 lines
783 B
C++
/******************************************************************************
|
|
Copyright(C):2015~2018 hzleaper
|
|
FileName:qtpthreadbase.h
|
|
Author:zhikun wu
|
|
Email:zk.wu@hzleaper.com
|
|
Tools:vs2010 pc on company
|
|
Created:2015/03/26
|
|
History:26:3:2015 17:06
|
|
*******************************************************************************/
|
|
#ifndef QTPTHREADBASE_H
|
|
#define QTPTHREADBASE_H
|
|
|
|
#include "baseInclude.h"
|
|
#include <QtCore/QThread>
|
|
|
|
class QTpThreadBase : public QThread
|
|
{
|
|
public:
|
|
QTpThreadBase(QObject *parent);
|
|
~QTpThreadBase();
|
|
|
|
void StartThread();
|
|
void EndThread();
|
|
protected:
|
|
virtual bool loop() { msleep(25); return false; }
|
|
private:
|
|
virtual void run();
|
|
private:
|
|
bool m_bRunSignal;
|
|
bool m_bIsRunning;
|
|
};
|
|
|
|
#endif // QTPTHREADBASE_H
|