Kernel: Fix race condition when destroying threads
This commit is contained in:
parent
c1b6b6b76a
commit
948ef2c820
|
@ -793,6 +793,8 @@ namespace Kernel
|
|||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
Processor::set_interrupt_state(InterruptState::Disabled);
|
||||
m_state = State::Terminated;
|
||||
Processor::yield();
|
||||
ASSERT_NOT_REACHED();
|
||||
|
|
Loading…
Reference in New Issue