mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
Fix sys_rwlock_wunlock
This commit is contained in:
parent
5766fb1f31
commit
67b71c0f89
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ error_code sys_rwlock_wunlock(ppu_thread& ppu, u32 rw_lock_id)
|
||||||
|
|
||||||
if (auto cpu = rwlock->schedule<ppu_thread>(rwlock->wq, rwlock->protocol))
|
if (auto cpu = rwlock->schedule<ppu_thread>(rwlock->wq, rwlock->protocol))
|
||||||
{
|
{
|
||||||
rwlock->owner = cpu->id << 1 | !rwlock->wq.empty();
|
rwlock->owner = cpu->id << 1 | !rwlock->wq.empty() | !rwlock->rq.empty();
|
||||||
|
|
||||||
rwlock->awake(*cpu);
|
rwlock->awake(*cpu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue