⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module once_lock

Module once_lock 

Source
Expand description

Safe Global Initialization (Rust 2024 Compatible)

Provides safe alternatives to static mut for global state management. Uses atomic operations and proper synchronization for Rust 2024 edition.

Structs§

GlobalState
Safe global state with mutex (Rust 2024 compatible)
LazyLock
Lazy initialization with function (Rust 2024 compatible)
OnceLock
A cell that can be written to only once (Rust 2024 compatible)