[core/common] cpu/gpu threading

This commit is contained in:
Ced2911 authored and Unknown W. Brackets committed 2014-03-02 11:29:07 -08:00
1 parent d82911de58
commit 59f4c05132
1 file changed
+5
+5
View File
@@ -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();