mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Fix sys_rwlock_wlock timeout event
This commit is contained in:
parent
afce3ee2ed
commit
1510505b30
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue