mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
[core/common] cpu/gpu threading
This commit is contained in:
1 parent
d82911de58
commit
59f4c05132
1 file changed
+5
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user