HLE_IPC: Correct HLE Event behavior on timeout.

This commit is contained in:
Fernando Sahmkow
2020-03-30 21:50:05 -04:00
parent 7e2ce2f7f4
commit 19165cd859
3 changed files with 19 additions and 1 deletions

View File

@ -70,6 +70,7 @@ std::shared_ptr<WritableEvent> HLERequestContext::SleepClientThread(
});
const auto readable_event{writable_event->GetReadableEvent()};
writable_event->Clear();
thread->SetHLESyncObject(readable_event.get());
thread->SetStatus(ThreadStatus::WaitHLEEvent);
thread->SetSynchronizationResults(nullptr, RESULT_TIMEOUT);
readable_event->AddWaitingThread(thread);