Expand description
ArceOS synchronization primitives.
Currently supported primitives:
Cargo Features
multitask
: For use in the multi-threaded environments. If the feature is not enabled,Mutex
will be an alias ofspin::SpinNoIrq
. This feature is enabled by default.
Re-exports
pub use spinlock as spin;
Structs
- Mutex
multitask
A mutual exclusion primitive useful for protecting shared data, similar tostd::sync::Mutex
. - MutexGuard
multitask
A guard that provides mutable data access.