Do proper resource cleanup for thread exit too.

This commit is contained in:
4lDO2
2024-07-15 14:33:00 +02:00
parent 8259ed281c
commit a3dedb0639
4 changed files with 66 additions and 57 deletions
+5 -2
View File
@@ -16,7 +16,8 @@ use crate::{
memory::{allocate_p2frame, deallocate_p2frame, Enomem, Frame, RaiiFrame},
paging::{RmmA, RmmArch},
percpu::PercpuBlock,
scheme::FileHandle, sync::WaitCondition,
scheme::FileHandle,
sync::WaitCondition,
};
use crate::syscall::error::{Error, Result, EAGAIN, ESRCH};
@@ -43,7 +44,9 @@ pub enum Status {
HardBlocked {
reason: HardBlockedReason,
},
Exited { user_data: usize },
Exited {
user_data: usize,
},
}
impl Status {