You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
614 B
37 lines
614 B
#pragma once
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
//
|
|
#include <QString>
|
|
#include <QThread>
|
|
|
|
namespace iflytop {
|
|
using namespace std;
|
|
|
|
class ZQThread : public QThread {
|
|
Q_OBJECT
|
|
private:
|
|
QString name_;
|
|
function<void()> cb_;
|
|
bool tryexitflag_ = false;
|
|
|
|
public:
|
|
ZQThread(const char* name, function<void()> cb);
|
|
void quit();
|
|
|
|
bool isTryExit() { return tryexitflag_; }
|
|
|
|
protected:
|
|
virtual void run() override;
|
|
};
|
|
|
|
} // namespace xsync
|