Expand description
ArceOS synchronization primitives.
Currently supported primitives:
§Cargo Features
multitask: For use in the multi-threaded environments. If the feature is not enabled,Mutexwill be an alias ofspin::SpinNoIrq. This feature is enabled by default.
Re-exports§
pub use kspin as spin;
Type Aliases§
- Mutex
Non- multitask - A spin lock that disables kernel preemption and local IRQs while trying to lock, and re-enables it after unlocking.
- Mutex
Guard Non- multitask - A guard that provides mutable data access for
SpinNoIrq.