Consider threads still waiting until they wake.

This seems to match the actual behavior of timeouts much better.
This commit is contained in:
Unknown W. Brackets committed 2012-11-30 23:04:24 -08:00
1 parent 48c5efd0c2
commit 998104e2eb
3 files changed
+42 -20

No files matched your search

+4
View File
@@ -1545,6 +1545,10 @@ void __KernelSwitchContext(Thread *target, const char *reason)
__KernelLoadContext(&currentThread->context);
DEBUG_LOG(HLE,"Context loaded (%s): %i - %s - pc: %08x", reason, currentThread->GetUID(), currentThread->GetName(), currentMIPS->pc);
// No longer waiting.
currentThread->nt.waitType = WAITTYPE_NONE;
currentThread->nt.waitID = 0;
__KernelExecutePendingMipsCalls();
}