yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Synchronization: Correct wide Assertion.

This commit is contained in:
Fernando Sahmkow 2020-03-09 10:51:05 -04:00
parent ab9aae28bf
commit 8a78fc2580
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@ void Synchronization::SignalObject(SynchronizationObject& obj) const {
if (obj.IsSignaled()) {
for (auto thread : obj.GetWaitingThreads()) {
if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) {
if (thread->GetStatus() != ThreadStatus::WaitHLEEvent) {
ASSERT(thread->GetStatus() == ThreadStatus::WaitSynch);
ASSERT(thread->IsWaitingSync());
}
thread->SetSynchronizationResults(&obj, RESULT_SUCCESS);
thread->ResumeFromWait();
}