10 releases
Uses new Rust 2024
| 0.3.0-preview.3 | Mar 11, 2026 |
|---|---|
| 0.3.0-preview.2 | Mar 6, 2026 |
| 0.2.2-preview.1 | Feb 6, 2026 |
#241 in Concurrency
670 downloads per month
Used in 45 crates
(21 directly)
86KB
1.5K
SLoC
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.
axsync
ArceOS synchronization primitives.
Primitives
- Mutex: A mutual exclusion primitive. With the
multitaskfeature, it uses task-aware locking; otherwise it is an alias ofkspin::SpinNoIrq. - spin: Re-export of the kspin crate (spinlocks).
Features
multitask: Enable multi-threaded support. When enabled,Mutexuses blocking that cooperates with the task scheduler; when disabled,Mutexis a spinlock.
License
This project is licensed under GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0.
Dependencies
~7–11MB
~187K SLoC