exit now marks all threads as exited
This commit is contained in:
parent
5f1274dd39
commit
e469ad705a
@ -405,8 +405,10 @@ impl Tasking {
|
||||
self.wfi_loop.store(false, Ordering::Relaxed);
|
||||
#[warn(clippy::indexing_slicing, reason = "FIXME(?)")]
|
||||
if self.current_pid.read().is_some() {
|
||||
self.current_thread(|process| {
|
||||
*process.sleeping.write() = Some(SleepReason::Exited);
|
||||
self.current_process(|process| {
|
||||
for (_, thread) in &*process.threads().read() {
|
||||
*thread.sleeping.write() = Some(SleepReason::Exited);
|
||||
}
|
||||
});
|
||||
}
|
||||
*self.current_pid.write() = Some(next_process_pid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user