mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
qt: Name ClientModel timer QThread
This commit is contained in:
parent
2c7f5d8c2e
commit
ad5f614bf3
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <net.h>
|
||||
#include <netbase.h>
|
||||
#include <util/system.h>
|
||||
#include <util/threadnames.h>
|
||||
#include <validation.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
@ -52,6 +53,9 @@ ClientModel::ClientModel(interfaces::Node& node, OptionsModel *_optionsModel, QO
|
|||
// move timer to thread so that polling doesn't disturb main event loop
|
||||
timer->moveToThread(m_thread);
|
||||
m_thread->start();
|
||||
QTimer::singleShot(0, timer, []() {
|
||||
util::ThreadRename("qt-clientmodl");
|
||||
});
|
||||
|
||||
subscribeToCoreSignals();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue