Fix sys_rwlock_wlock timeout event

This commit is contained in:
Eladash 2020-03-29 22:53:03 +03:00 committed by Ivan
parent afce3ee2ed
commit 1510505b30

View file

@ -371,6 +371,10 @@ error_code sys_rwlock_wlock(ppu_thread& ppu, u32 rw_lock_id, u64 timeout)
lv2_obj::awake_all();
}
else if (rwlock->rq.empty() && rwlock->wq.empty())
{
rwlock->owner &= -2;
}
ppu.gpr[3] = CELL_ETIMEDOUT;
break;