Type Definition r3_core::kernel::semaphore::StaticSemaphore

source ·
pub type StaticSemaphore<System> = SemaphoreRef<'static, System>;
Expand description

A static handle type: SemaphoreRef<'static, System>

This type is ABI-compatible with System::RawSemaphoreId. It’s logically equivalent to &'static Semaphore but instead stores RawSemaphoreId directly.

See Semaphore for the owned counterpart and the description of this kernel object. See SemaphoreMethods for the operations provided by this handle type.

Implementations§

source§

impl<System: KernelSemaphore> StaticSemaphore<System>

source

pub const fn define() -> SemaphoreDefiner<System>

Construct a SemaphoreDefiner to define a semaphore in a configuration function.