From 59f4c051323b5c2bb7424a2935d85ec3485214ce Mon Sep 17 00:00:00 2001 From: Ced2911 Date: Wed, 4 Dec 2013 11:36:52 +0100 Subject: [PATCH] [core/common] cpu/gpu threading --- Core/System.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/System.cpp b/Core/System.cpp index 8400784731..78b7afd73f 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -324,6 +324,11 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) { Core_ListenShutdown(System_Wake); CPU_SetState(CPU_THREAD_PENDING); cpuThread = new std::thread(&CPU_RunLoop); +#ifdef _XBOX + SuspendThread(cpuThread->native_handle()); + XSetThreadProcessor(cpuThread->native_handle(), 2); + ResumeThread(cpuThread->native_handle()); +#endif cpuThread->detach(); } else { CPU_Init();