mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
[core/common] cpu/gpu threading
This commit is contained in:
parent
d82911de58
commit
59f4c05132
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user