System: Move thread name init to host
Prevents funky thread names for regtest on Linux.
This commit is contained in:
parent
cbc16bee9e
commit
b7fff840c8
src
|
@ -61,7 +61,6 @@
|
|||
#include "common/memmap.h"
|
||||
#include "common/path.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common/threading.h"
|
||||
|
||||
#include "IconsEmoji.h"
|
||||
#include "IconsFontAwesome5.h"
|
||||
|
@ -499,8 +498,6 @@ void System::ProcessShutdown()
|
|||
|
||||
bool System::CPUThreadInitialize(Error* error)
|
||||
{
|
||||
Threading::SetNameOfCurrentThread("CPU Thread");
|
||||
|
||||
#ifdef _WIN32
|
||||
// On Win32, we have a bunch of things which use COM (e.g. SDL, Cubeb, etc).
|
||||
// We need to initialize COM first, before anything else does, because otherwise they might
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "common/path.h"
|
||||
#include "common/scoped_guard.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common/threading.h"
|
||||
|
||||
#include "util/audio_stream.h"
|
||||
#include "util/http_downloader.h"
|
||||
|
@ -1791,6 +1792,8 @@ void EmuThread::stopInThread()
|
|||
|
||||
void EmuThread::run()
|
||||
{
|
||||
Threading::SetNameOfCurrentThread("CPU Thread");
|
||||
|
||||
m_event_loop = new QEventLoop();
|
||||
m_started_semaphore.release();
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ bool RegTestHost::InitializeConfig()
|
|||
EmuFolders::EnsureFoldersExist();
|
||||
|
||||
// imgui setup, make sure it doesn't bug out
|
||||
ImGuiManager::SetFontPathAndRange(std::string(), {0x0020, 0x00FF, 0, 0});
|
||||
ImGuiManager::SetFontPathAndRange(std::string(), {0x0020, 0x00FF, 0x2022, 0x2022, 0, 0});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue