mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
sys_lwcond: Fix a loose notification in cond wait
This commit is contained in:
parent
f2997e4c00
commit
7ff4509858
1 changed files with 3 additions and 1 deletions
|
@ -368,11 +368,13 @@ error_code _sys_lwcond_queue_wait(ppu_thread& ppu, u32 lwcond_id, u32 lwmutex_id
|
|||
return;
|
||||
}
|
||||
|
||||
// Put the current thread to sleep and schedule lwmutex waiter atomically
|
||||
cond.append(cpu);
|
||||
cond.sleep(ppu, timeout);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Sleep current thread and schedule lwmutex waiter
|
||||
cond.sleep(ppu, timeout);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue