Add WorkList Module.

This commit is contained in:
sunwen
2022-09-29 17:36:55 +08:00
parent 1fe306b532
commit 3a6a755ef1
22 changed files with 803 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
#include "AsyncAction.h"
#include <QThreadPool>
#include <QThread>
#include <QDebug>
AsyncAction::AsyncAction(QObject* aParent)
: QObject(aParent)
, QRunnable()
{
setAutoDelete(false);
}
AsyncAction::~AsyncAction()
{
}
void AsyncAction::execute()
{
QThreadPool::globalInstance()->start(this);
}