Crate axsync

source ·
Expand description

ArceOS synchronization primitives.

Currently supported primitives:

  • Mutex: A mutual exclusion primitive.
  • mod spin: spin-locks.

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

Structs

  • Mutexmultitask
    A mutual exclusion primitive useful for protecting shared data, similar to std::sync::Mutex.
  • MutexGuardmultitask
    A guard that provides mutable data access.