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.