qt: Name ClientModel timer QThread
This commit is contained in:
1 file changed
+4
@@ -15,6 +15,7 @@
|
|||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <netbase.h>
|
#include <netbase.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
|
#include <util/threadnames.h>
|
||||||
#include <validation.h>
|
#include <validation.h>
|
||||||
|
|
||||||
#include <stdint.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
|
// move timer to thread so that polling doesn't disturb main event loop
|
||||||
timer->moveToThread(m_thread);
|
timer->moveToThread(m_thread);
|
||||||
m_thread->start();
|
m_thread->start();
|
||||||
|
QTimer::singleShot(0, timer, []() {
|
||||||
|
util::ThreadRename("qt-clientmodl");
|
||||||
|
});
|
||||||
|
|
||||||
subscribeToCoreSignals();
|
subscribeToCoreSignals();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user