Eat cycles when messing with the dispatch thread.

This commit is contained in:
Unknown W. Brackets 2013-05-28 01:33:24 -07:00
parent afff20a642
commit 553990d5a0

View file

@ -2316,6 +2316,7 @@ u32 sceKernelSuspendDispatchThread()
u32 oldDispatchEnabled = dispatchEnabled;
dispatchEnabled = false;
DEBUG_LOG(SCEKERNEL, "%i=sceKernelSuspendDispatchThread()", oldDispatchEnabled);
hleEatCycles(940);
return oldDispatchEnabled;
}
@ -2331,6 +2332,7 @@ u32 sceKernelResumeDispatchThread(u32 enabled)
dispatchEnabled = enabled != 0;
DEBUG_LOG(SCEKERNEL, "sceKernelResumeDispatchThread(%i) - from %i", enabled, oldDispatchEnabled);
hleReSchedule("dispatch resumed");
hleEatCycles(940);
return 0;
}