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