Skip to main content

Module sync

Module sync 

Source

Modules§

broadcast
A multi-producer, multi-consumer broadcast queue. Each sent value is seen by all consumers.
mpsc
A multi-producer, single-consumer queue for sending values between asynchronous tasks.
oneshot
A one-shot channel is used for sending a single message between asynchronous tasks. The channel function is used to create a Sender and Receiver handle pair that form the channel.

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
Mutex
An asynchronous Mutex-like type.
Notify
Notifies a single task to wake up.
RwLock
An asynchronous reader-writer lock.

Functions§

is_pi_mutex_active
Diagnostic — true when the PI variant is active in this build.
report_lock_protocol
Print, once at boot, which lock protocol this process actually obtained.

Type Aliases§

PriorityInheritanceMutex
Non-RT fallback — uses parking_lot::Mutex for the common case. PI semantics are not needed because the scheduler does not preempt the lock holder by priority.
PriorityInheritanceMutexGuard
See PriorityInheritanceMutexGuardparking_lot’s guard is already !Send for the same reason.