Crate axsync

Source
Expand description

ArceOS synchronization primitives.

Currently supported primitives:

  • Mutex: A mutual exclusion primitive.
  • mod [spin]: spinlocks imported from the [kspin] crate.

§Cargo Features

  • multitask: For use in the multi-threaded environments. If the feature is not enabled, Mutex will be an alias of [spin::SpinNoIrq]. This feature is enabled by default.

Re-exports§

pub use kspin as spin;

Structs§

RawMutexmultitask
A [lock_api::RawMutex] implementation.

Type Aliases§

Mutexmultitask
An alias of [lock_api::Mutex].
MutexGuardmultitask
An alias of [lock_api::MutexGuard].