CSPspEmu.Hle.Managers.HleThreadManager.ExecuteQueuedCallbacks C# (CSharp) Method

ExecuteQueuedCallbacks() private method

private ExecuteQueuedCallbacks ( ) : void
return void
        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
        }