mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
Merge pull request 'FutureScheduler: update with upstream v0.17.1.3' (#141) from tobtoht/feather:scheduler into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/141
This commit is contained in:
commit
2c99454565
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue