zephyr::sys::sync::mutex

Type Alias StaticMutex

source
pub type StaticMutex = StaticKernelObject<k_mutex>;
Expand description

A static Zephyr k_mutex

This is intended to be used from within the kobj_define! macro. It declares a static k_mutex that will be properly registered with the Zephyr object system. Call init_once to get the Mutex that it represents.

Aliased Type§

struct StaticMutex {
    pub value: UnsafeCell<k_mutex>,
    pub init: AtomicUsize,
}

Fields§

§value: UnsafeCell<k_mutex>

The underlying zephyr kernel object.

§init: AtomicUsize

Initialization status of this object. Most objects will start uninitialized and be initialized manually.

Trait Implementations§