第一次上传
This commit is contained in:
23
Threads/SubThread.h
Normal file
23
Threads/SubThread.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef SUBTHREAD_H
|
||||
#define SUBTHREAD_H
|
||||
|
||||
#include <QThread>
|
||||
#include <GlobalDefinitions/Variable.h>
|
||||
class SubThread : public QThread
|
||||
{
|
||||
|
||||
public:
|
||||
SubThread();
|
||||
void ReStart();
|
||||
void PauseThread();
|
||||
void KillThread();
|
||||
private:
|
||||
void executeThreadLogic(); // 执行线程逻辑的函数
|
||||
protected:
|
||||
void run() override; // 重写run函数不再需要
|
||||
private:
|
||||
bool isLoop;
|
||||
bool isPause;
|
||||
};
|
||||
|
||||
#endif // SUBTHREAD_H
|
||||
Reference in New Issue
Block a user