feat(kernel): add SpawnThread, CreateProcess, and Kill syscalls

This commit is contained in:
2026-10-18 00:21:01 +02:00
parent 471d96b9a4
commit 07534e52d9
4 changed files with 210 additions and 0 deletions

View File

@@ -29,6 +29,17 @@ impl WaitQueue {
thread
}
pub fn remove_thread(&mut self, thread: ThreadId) -> bool {
for slot in &mut self.entries {
if *slot == Some(thread) {
*slot = None;
self.count -= 1;
return true;
}
}
false
}
pub fn is_empty(&self) -> bool {
self.count == 0
}