Actually, let's not wait at all in Core_Stop().

It just triggers the action on the other thread.
This commit is contained in:
Unknown W. Brackets committed 2013-10-12 23:20:27 -07:00
1 parent 8ec2131795
commit b54e557d19
2 files changed
+3 -6

No files matched your search

+2 -5
View File
@@ -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();
}
}