mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
lv2: Wait for rescheduling before confirming ETIMEOUT
This commit is contained in:
parent
35a3bed91a
commit
a921fe3351
7 changed files with 24 additions and 0 deletions
|
|
@ -130,6 +130,9 @@ error_code _sys_lwmutex_lock(ppu_thread& ppu, u32 lwmutex_id, u64 timeout)
|
|||
{
|
||||
if (lv2_obj::wait_timeout(timeout, &ppu))
|
||||
{
|
||||
// Wait for rescheduling
|
||||
ppu.check_state();
|
||||
|
||||
std::lock_guard lock(mutex->mutex);
|
||||
|
||||
if (!mutex->unqueue(mutex->sq, &ppu))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue