mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 04:45:31 -07:00
Add thread name to the qt event loop thread [skip ci]
This commit is contained in:
@@ -442,7 +442,7 @@ main_thread_fn()
|
|||||||
int frames;
|
int frames;
|
||||||
|
|
||||||
QThread::currentThread()->setPriority(QThread::HighestPriority);
|
QThread::currentThread()->setPriority(QThread::HighestPriority);
|
||||||
plat_set_thread_name(nullptr, "main_thread_fn");
|
plat_set_thread_name(nullptr, "main_thread");
|
||||||
framecountx = 0;
|
framecountx = 0;
|
||||||
// title_update = 1;
|
// title_update = 1;
|
||||||
uint64_t old_time = elapsed_timer.elapsed();
|
uint64_t old_time = elapsed_timer.elapsed();
|
||||||
@@ -893,6 +893,8 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* Initialize the rendering window, or fullscreen. */
|
/* Initialize the rendering window, or fullscreen. */
|
||||||
QTimer::singleShot(0, &app, [] {
|
QTimer::singleShot(0, &app, [] {
|
||||||
|
plat_set_thread_name(nullptr, "qt_thread");
|
||||||
|
|
||||||
#ifdef Q_OS_WINDOWS
|
#ifdef Q_OS_WINDOWS
|
||||||
extern bool NewDarkMode;
|
extern bool NewDarkMode;
|
||||||
NewDarkMode = util::isWindowsLightTheme();
|
NewDarkMode = util::isWindowsLightTheme();
|
||||||
|
|||||||
Reference in New Issue
Block a user