Skip to main content

Mutex

Type Alias Mutex 

Source
pub type Mutex<T> = BaseSpinLock<NoOp, T>;
Available on non-crate feature multitask only.
Expand description

A spin lock that disables kernel preemption and local IRQs while trying to lock, and re-enables it after unlocking.

It can be used in the IRQ-enabled context.

Aliased Typeยง

pub struct Mutex<T> { /* private fields */ }