Skip to content

Commit

Permalink
Merge pull request #15930 from sum2012/kernel-minor
Browse files Browse the repository at this point in the history
Fix sceKernelUnlockMutex timing
  • Loading branch information
hrydgard authored Aug 30, 2022
2 parents 59813ff + 75390be commit fd863be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/HLE/sceKernelMutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,10 @@ int sceKernelUnlockMutex(SceUID id, int count)

if (mutex->nm.lockLevel == 0)
{
if (__KernelUnlockMutex(mutex, error))
if (__KernelUnlockMutex(mutex, error)) {
hleReSchedule("mutex unlocked");
return hleDelayResult(0, "unlock", 150);
}
}

return 0;
Expand Down

0 comments on commit fd863be

Please sign in to comment.