Emul8.Peripherals.CPU.TranslationCPU.UpdateTranslationCacheSize C# (CSharp) Method

UpdateTranslationCacheSize() private method

private UpdateTranslationCacheSize ( int sizeAtThatTime ) : void
sizeAtThatTime int
return void
        private void UpdateTranslationCacheSize(int sizeAtThatTime)
        {
            lock(translationCacheSync)
            {
                if(sizeAtThatTime != translationCacheSize)
                {
                    // another task will take care
                    return;
                }
                currentTimer = null;
                using(machine.ObtainPausedState())
                {
                    PrepareState();
                    DisposeInner(true);
                    RestoreState();
                }
            }
        }
TranslationCPU