mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +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;
|
||||
|
||||
if (signal)
|
||||
{
|
||||
cpu->next_cpu = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
const bool notify = lwcond_waiters.fetch_op([](s32& val)
|
||||
{
|
||||
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)
|
||||
lwcond_waiters.notify_all();
|
||||
}
|
||||
|
||||
if (signal)
|
||||
{
|
||||
cpu->next_cpu = nullptr;
|
||||
}
|
||||
|
||||
return signal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue