Reschedule the timeout event on callback end.
Darn, missed that 3 times before I caught it.
This commit is contained in:
parent
200ec55c61
commit
9ce8c07530
3 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue