ProcessState
All possible states in a process lifecycle.
@ New
Process has been created but not yet admitted to the ready queue.
PriorityLevel
Discrete priority levels, from highest (Realtime) to lowest (Idle).
@ Normal
Default priority for user processes.
std::uint64_t Tick
Simulation clock tick counter.
std::uint32_t ProcessId
Unique identifier for a process.
constexpr ProcessId INVALID_PID
Sentinel value indicating an invalid/unassigned process ID.
constexpr std::int32_t NICE_DEFAULT
Default nice value (no adjustment).
Process priority levels and the Priority struct.
ProcessState enum class and validated state transitions.
Single history entry stored by the UI history buffer.
TuiSnapshot snapshot
Captured immutable TUI snapshot.
std::size_t sequence
History index/sequence.
Immutable memory-focused snapshot consumed by TUI views.
std::size_t totalVirtualSlots
Total number of virtual memory slots.
std::vector< std::optional< ProcessId > > frameOwners
Optional frame ownership map (one entry per frame when provided).
std::optional< std::size_t > totalFrames
Optional total number of physical frames.
std::size_t freeVirtualSlots
Number of free virtual memory slots.
std::optional< std::size_t > freeFrames
Optional number of free physical frames.
Immutable process row used by TUI views.
Tick cpuTime
Total CPU time consumed by process.
PriorityLevel effectivePriority
Dynamic/effective process priority.
PriorityLevel basePriority
Static/base process priority.
std::optional< std::size_t > laneIndex
Optional scheduler lane ownership metadata.
ProcessState state
Current process lifecycle state.
std::int32_t nice
Nice value used for fine-grained priority adjustment.
std::string name
Human-readable process name.
Immutable scheduler-focused snapshot consumed by TUI views.
std::vector< ProcessId > blockedQueue
Ordered blocked queue PIDs when available.
std::size_t blockedCount
Blocked queue size summary.
std::vector< std::vector< ProcessId > > perLaneReadyQueues
Per-lane ready queues when available.
std::vector< ProcessId > runningQueue
Running process IDs across scheduler lanes.
std::size_t readyCount
Ready queue size summary.
std::vector< ProcessId > readyQueue
Ordered ready queue PIDs when available.
std::string policyName
Active scheduling policy name when available.
Top-level immutable model snapshot consumed by TUI controller/views.
std::uint64_t sequence
Monotonic snapshot sequence for deterministic ordering.
Tick currentTick
Current simulation tick represented by this snapshot.
TuiMemorySnapshot memory
Memory-related state.
std::uint64_t epoch
Optional runtime epoch metadata for deterministic mode correlation.
std::size_t processCount
Total process count summary.
TuiSchedulerSnapshot scheduler
Scheduler-related state.
std::vector< TuiProcessSnapshot > processes
Process rows for process-focused views.
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel...