mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
Minor fix of sys_lwmutex_destroy
This commit is contained in:
parent
1e5f6ba39c
commit
cec976b70a
1 changed files with 22 additions and 20 deletions
|
@ -108,6 +108,12 @@ struct lv2_lwmutex final : lv2_obj
|
||||||
}
|
}
|
||||||
}).signaled;
|
}).signaled;
|
||||||
|
|
||||||
|
if (signal)
|
||||||
|
{
|
||||||
|
cpu->next_cpu = nullptr;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
const bool notify = lwcond_waiters.fetch_op([](s32& val)
|
const bool notify = lwcond_waiters.fetch_op([](s32& val)
|
||||||
{
|
{
|
||||||
if (val + 0u <= 1u << 31)
|
if (val + 0u <= 1u << 31)
|
||||||
|
@ -127,10 +133,6 @@ struct lv2_lwmutex final : lv2_obj
|
||||||
// Notify lwmutex destroyer (may cause EBUSY to be returned for it)
|
// Notify lwmutex destroyer (may cause EBUSY to be returned for it)
|
||||||
lwcond_waiters.notify_all();
|
lwcond_waiters.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signal)
|
|
||||||
{
|
|
||||||
cpu->next_cpu = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return signal;
|
return signal;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue