CPU: update suspend interface (dummy)

This commit is contained in:
Nekotekina 2020-11-18 19:15:56 +03:00
parent 190676c982
commit e9f7c100a0
2 changed files with 30 additions and 7 deletions

View file

@ -836,7 +836,7 @@ std::string cpu_thread::dump_misc() const
return fmt::format("Type: %s\n" "State: %s\n", typeid(*this).name(), state.load());
}
bool cpu_thread::suspend_work::push(cpu_thread* _this, bool cancel_if_not_suspended) noexcept
bool cpu_thread::suspend_work::push(cpu_thread* _this) noexcept
{
// Can't allow pre-set wait bit (it'd be a problem)
verify(HERE), !_this || !(_this->state & cpu_flag::wait);