From 0296776e45850e0334216312b632d5ae1666220c Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sat, 17 Oct 2026 23:34:54 +0200 Subject: [PATCH] chore: remove old flat process.rs and thread.rs replaced by directories --- crates/domain/src/process.rs | 15 --------------- crates/domain/src/thread.rs | 33 --------------------------------- 2 files changed, 48 deletions(-) delete mode 100644 crates/domain/src/process.rs delete mode 100644 crates/domain/src/thread.rs diff --git a/crates/domain/src/process.rs b/crates/domain/src/process.rs deleted file mode 100644 index 54cdc4e..0000000 --- a/crates/domain/src/process.rs +++ /dev/null @@ -1,15 +0,0 @@ -use types::{ - bounded::CapSlot, - id::{ProcessId, ThreadId}, -}; - -use crate::capability::CapabilityTable; - -pub const MAX_THREADS_PER_PROCESS: usize = 4; - -pub struct Process { - id: ProcessId, - capabilities: CapabilityTable, - threads: [Option; MAX_THREADS_PER_PROCESS], - fault_handler: Option, -} diff --git a/crates/domain/src/thread.rs b/crates/domain/src/thread.rs deleted file mode 100644 index 22862a3..0000000 --- a/crates/domain/src/thread.rs +++ /dev/null @@ -1,33 +0,0 @@ -use types::{ - bounded::{CapSlot, Priority}, - id::{CoreId, ProcessId, ThreadId}, - time::TimeSlice, -}; - -pub struct Thread { - id: ThreadId, - process: ProcessId, - state: ThreadState, - saved_context: SavedContext, - priority: Priority, - time_slice: TimeSlice, - core_affinity: Option, -} - -pub enum ThreadState { - Ready, - Running(CoreId), - Blocked(BlockReason), - Dead, -} - -pub struct SavedContext { - registers: [usize; 32], -} - -pub enum BlockReason { - Sending(CapSlot), - Receiving(CapSlot), - WaitingForInterrupt(CapSlot), - WaitingAny, -}