Minor optimization

This commit is contained in:
Nekotekina 2017-03-13 13:35:20 +03:00
parent 78703cfe47
commit 1ede0f4706
4 changed files with 25 additions and 2 deletions

View file

@ -107,6 +107,14 @@ namespace vm
}
}
void temporary_unlock() noexcept
{
if (auto cpu = get_current_cpu_thread())
{
temporary_unlock(*cpu);
}
}
reader_lock::reader_lock()
: locked(true)
{