mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Wake good pri threads immediately from HLE delays.
This commit is contained in:
parent
118736ff75
commit
6c4a614205
1 changed files with 3 additions and 0 deletions
|
@ -78,7 +78,10 @@ void hleDelayResultFinish(u64 userdata, int cycleslate)
|
||||||
u64 result = (userdata & 0xFFFFFFFF00000000ULL) | __KernelGetWaitValue(threadID, error);
|
u64 result = (userdata & 0xFFFFFFFF00000000ULL) | __KernelGetWaitValue(threadID, error);
|
||||||
|
|
||||||
if (error == 0 && verify == 1)
|
if (error == 0 && verify == 1)
|
||||||
|
{
|
||||||
__KernelResumeThreadFromWait(threadID, result);
|
__KernelResumeThreadFromWait(threadID, result);
|
||||||
|
__KernelReSchedule("woke from hle delay");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
WARN_LOG(HLE, "Someone else woke up HLE-blocked thread?");
|
WARN_LOG(HLE, "Someone else woke up HLE-blocked thread?");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue