Closed bitboom closed 5 months ago
This PR aims to eliminate unsafe code associated with Mutable Static Variables (MSVs).
unsafe code
The strategy for accessing MSVs is outlined below.
core::sync::atomic
lazy_static
SpinLock
Mutex
Replaced with https://github.com/islet-project/islet/pull/314
This PR aims to eliminate
unsafe code
associated with Mutable Static Variables (MSVs).The strategy for accessing MSVs is outlined below.
core::sync::atomic
for primitive types, enabling atomic operations that ensure thread safety.lazy_static
for types requiring runtime initialization, ensuring thread-safe setup.SpinLock
andMutex
based on your system requirements