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();
}
}
}