From e44dfd08f5fcf8ccde9d9e113c8aedf891bf1d8e Mon Sep 17 00:00:00 2001 From: richardg867 Date: Fri, 3 Oct 2025 16:34:12 -0300 Subject: [PATCH] Add thread name to the qt event loop thread [skip ci] --- src/qt/qt_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt/qt_main.cpp b/src/qt/qt_main.cpp index 2ad744131..8fbcfe7d3 100644 --- a/src/qt/qt_main.cpp +++ b/src/qt/qt_main.cpp @@ -442,7 +442,7 @@ main_thread_fn() int frames; QThread::currentThread()->setPriority(QThread::HighestPriority); - plat_set_thread_name(nullptr, "main_thread_fn"); + plat_set_thread_name(nullptr, "main_thread"); framecountx = 0; // title_update = 1; uint64_t old_time = elapsed_timer.elapsed(); @@ -893,6 +893,8 @@ main(int argc, char *argv[]) /* Initialize the rendering window, or fullscreen. */ QTimer::singleShot(0, &app, [] { + plat_set_thread_name(nullptr, "qt_thread"); + #ifdef Q_OS_WINDOWS extern bool NewDarkMode; NewDarkMode = util::isWindowsLightTheme();