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

Download history 22/week @ 2026-02-05 30/week @ 2026-02-12 96/week @ 2026-02-19 137/week @ 2026-02-26 268/week @ 2026-03-05 168/week @ 2026-03-12 230/week @ 2026-03-19 67/week @ 2026-03-26 83/week @ 2026-04-02 273/week @ 2026-04-09

670 downloads per month
Used in 45 crates (21 directly)

GPL-3.0-or-later OR Apache-2… and maybe GPL-2.0-or-later

86KB
1.5K SLoC

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.

axsync

Crates.io Docs.rs

ArceOS synchronization primitives.

Primitives

  • Mutex: A mutual exclusion primitive. With the multitask feature, it uses task-aware locking; otherwise it is an alias of kspin::SpinNoIrq.
  • spin: Re-export of the kspin crate (spinlocks).

Features

  • multitask: Enable multi-threaded support. When enabled, Mutex uses blocking that cooperates with the task scheduler; when disabled, Mutex is 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