vm: Attempt to not remove cpu_flag::wait flag during access violation

This commit is contained in:
Eladash 2022-08-19 12:02:45 +03:00 committed by Ivan
parent b0e2c959eb
commit ddba30988b
4 changed files with 10 additions and 5 deletions

View file

@ -380,7 +380,7 @@ namespace vm
}
}
void temporary_unlock(cpu_thread& cpu) noexcept
bool temporary_unlock(cpu_thread& cpu) noexcept
{
bs_t<cpu_flag> add_state = cpu_flag::wait;
@ -392,7 +392,10 @@ namespace vm
if (add_state - cpu.state)
{
cpu.state += add_state;
return true;
}
return false;
}
void temporary_unlock() noexcept