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.
17 lines
285 B
17 lines
285 B
#include "zqthread.hpp"
|
|
using namespace iflytop;
|
|
using namespace std;
|
|
|
|
ZQThread::ZQThread(const char* name, function<void()> cb) {
|
|
name_ = QString(name);
|
|
cb_ = cb;
|
|
}
|
|
|
|
void ZQThread::run() {
|
|
if (cb_) cb_();
|
|
}
|
|
|
|
void ZQThread::quit() {
|
|
tryexitflag_ = true;
|
|
QThread::quit();
|
|
}
|