Expand description
Async synchronization primitives.
Re-exports§
pub use channel::Channel;pub use channel::Receiver;pub use channel::Sender;pub use once::Once;pub use semaphore::Semaphore;pub use signal::Signal;
Modules§
- atomic
- Atomic shim:
loom::sync::atomicunder permutation testing, otherwisecore::sync::atomic— or, on a target with no native RMW atomics (see theatomics-polyfillfeature),portable_atomicinstead (plan.md §1.3). - channel
- Static SPSC (Single-Producer Single-Consumer) channel.
- once
- A minimal no_std
Oncecell: written exactly once (at boot), read-only afterwards. Used for theChannel::split-once pattern (plan.md [B8]): the sender/receiver halves of a static channel are stored here once at boot and borrowed by tasks for the lifetime of the program. - semaphore
- Async counting semaphore.
- signal
- A one-shot, latching wake-up handoff between an external context (an ISR, another hart, another task) and exactly one waiting task.