Merge pull request #15930 from sum2012/kernel-minor

Fix sceKernelUnlockMutex timing
This commit is contained in:
Henrik Rydgård 2022-08-30 15:34:59 +02:00 committed by GitHub
commit fd863beb96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;