private void ExecuteQueuedCallbacks()
{
#if !DISABLE_CALLBACKS
bool HasScheduledCallbacks = HleCallbackManager.HasScheduledCallbacks;
bool HasQueuedFunctions = HleInterop.HasQueuedFunctions;
if (HasScheduledCallbacks || HasQueuedFunctions)
{
var Thread = FindCallbackHandlerWithHighestPriority();
if (Thread != null)
{
if (HasScheduledCallbacks) HleCallbackManager.ExecuteQueued(Thread.CpuThreadState, true);
if (HasQueuedFunctions) HleInterop.ExecuteAllQueuedFunctionsNow();
}
}
#endif
}