mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 01:59:34 +01:00
Actually, let's not wait at all in Core_Stop().
It just triggers the action on the other thread.
This commit is contained in:
1 parent
8ec2131795
commit
b54e557d19
2 files changed
+3
-6
No files matched your search
+2
-5
@@ -269,13 +269,10 @@ void Core_UpdateState(CoreState newState) {
|
||||
}
|
||||
|
||||
void System_Wake() {
|
||||
if (CPU_IsReady()) {
|
||||
CPU_NextStateNot(CPU_THREAD_NOT_RUNNING, CPU_THREAD_SHUTDOWN);
|
||||
CPU_WaitStatus(cpuThreadReplyCond, &CPU_IsShutdown);
|
||||
}
|
||||
// Ping the threads so they check coreState.
|
||||
CPU_NextStateNot(CPU_THREAD_NOT_RUNNING, CPU_THREAD_SHUTDOWN);
|
||||
if (gpu) {
|
||||
gpu->FinishEventLoop();
|
||||
gpu->SyncThread();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user