Reschedule the timeout event on callback end.

Darn, missed that 3 times before I caught it.
This commit is contained in:
Unknown W. Brackets 2013-04-14 21:34:33 -07:00
parent 200ec55c61
commit 9ce8c07530
3 changed files with 12 additions and 0 deletions

View file

@ -209,6 +209,9 @@ void __KernelSemaEndCallback(SceUID threadID, SceUID prevCallbackId, u32 &return
}
else
{
if (timeoutPtr != 0 && semaWaitTimer != -1)
CoreTiming::ScheduleEvent(cyclesLeft, semaWaitTimer, __KernelGetCurThread());
// TODO: Should this not go at the end?
s->waitingThreads.push_back(threadID);