Remove MainThread_Start/Stop to increase visibility

This commit is contained in:
Henrik Rydgård committed 2026-07-21 12:58:45 +02:00
1 parent 221aba92da
commit cc69070f19
5 files changed
+19 -27

No files matched your search

-19
View File
@@ -43,7 +43,6 @@ enum class EmuThreadState {
static std::thread emuThread;
static std::atomic<EmuThreadState> g_emuThreadState(EmuThreadState::DISABLED);
static std::thread mainThread;
static std::string g_error_message;
static bool g_inLoop;
@@ -52,23 +51,7 @@ static GraphicsContext *g_graphicsContext;
void MainThreadFunc();
void MainThread_Start() {
mainThread = std::thread([]() {
MainThreadFunc();
});
}
void MainThread_Stop() {
// Already stopped?
UpdateUIState(UISTATE_EXIT);
_dbg_assert_(mainThread.joinable());
mainThread.join();
}
bool MainThread_Ready() {
if (g_inLoop) {
_dbg_assert_(mainThread.joinable());
}
return g_inLoop;
}
@@ -152,8 +135,6 @@ void MainThreadFunc() {
SetCurrentThreadName(useEmuThread ? "RenderThread" : "EmuThread");
System_SetWindowTitle("");
const bool performingRestart = NativeIsRestarting();
if (g_Config.sFailedGPUBackends.find("ALL") != std::string::npos) {