diff options
| author | Gavin Andresen <[email protected]> | 2015-04-03 11:50:06 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2015-05-14 12:50:41 -0400 |
| commit | ddd0acd3dbbbf3e19d2379fc9b24e7ef5c2a8adb (patch) | |
| tree | 53c830bfbbd12bd272c99d4f38f56bb109ce761d /src/qt/bitcoin.cpp | |
| parent | CScheduler unit test (diff) | |
| download | discoin-ddd0acd3dbbbf3e19d2379fc9b24e7ef5c2a8adb.tar.xz discoin-ddd0acd3dbbbf3e19d2379fc9b24e7ef5c2a8adb.zip | |
Create a scheduler thread for lightweight tasks
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 018169cfd..8740b98b7 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -26,6 +26,7 @@ #include "init.h" #include "main.h" #include "rpcserver.h" +#include "scheduler.h" #include "ui_interface.h" #include "util.h" @@ -178,6 +179,7 @@ signals: private: boost::thread_group threadGroup; + CScheduler scheduler; /// Pass fatal exception message to UI thread void handleRunawayException(const std::exception *e); @@ -258,7 +260,7 @@ void BitcoinCore::initialize() try { qDebug() << __func__ << ": Running AppInit2 in thread"; - int rv = AppInit2(threadGroup); + int rv = AppInit2(threadGroup, scheduler); if(rv) { /* Start a dummy RPC thread if no RPC thread is active yet |