mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
FutureScheduler: update with upstream v0.17.1.3
This commit is contained in:
@@ -3,9 +3,17 @@
|
||||
|
||||
#include "scheduler.h"
|
||||
|
||||
#include <mutex>
|
||||
|
||||
#include <QThreadPool>
|
||||
|
||||
FutureScheduler::FutureScheduler(QObject *parent)
|
||||
: QObject(parent), Alive(0), Stopping(false)
|
||||
{
|
||||
static std::once_flag once;
|
||||
std::call_once(once, []() {
|
||||
QThreadPool::globalInstance()->setMaxThreadCount(4);
|
||||
});
|
||||
}
|
||||
|
||||
FutureScheduler::~FutureScheduler()
|
||||
|
||||
Reference in New Issue
Block a user