Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sys_rwlock_wlock timeout event #7899

Merged
merged 1 commit into from Mar 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions rpcs3/Emu/Cell/lv2/sys_rwlock.cpp
Expand Up @@ -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;
Expand Down