FSO.Content.ChangeManager.RunResModifications C# (CSharp) Метод

RunResModifications() публичный Метод

Runs the queued resource modifications. Should be executed from the game thread, so that any queued operations are run on the game thread. The chunks in use will be locked - it's up to external threads to consider that when retrieving a chunk's information for use.
public RunResModifications ( ) : void
Результат void
        public void RunResModifications()
        {
            lock (this)
            {
                lock (ResActionQueue)
                {
                    while (ResActionQueue.Count > 0) ResActionQueue.Dequeue().Execute();
                }

                lock (InvokeQueue)
                {
                    while (InvokeQueue.Count > 0)
                    {
                        var inv = InvokeQueue.Dequeue();

                        inv.Function.DynamicInvoke(inv.Args);
                        inv.Sync.Set();
                    }
                }
            }
        }