Fix sys_rwlock_wunlock

This commit is contained in:
Nekotekina 2017-07-23 23:15:09 +03:00
parent 5766fb1f31
commit 67b71c0f89
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{
rwlock->owner = cpu->id << 1 | !rwlock->wq.empty();
rwlock->owner = cpu->id << 1 | !rwlock->wq.empty() | !rwlock->rq.empty();
rwlock->awake(*cpu);
}