Struct riot_sys::rmutex_t

source ·
#[repr(C)]
pub struct rmutex_t { pub mutex: mutex_t, pub refcount: u16, pub owner: kernel_pid_t, }
Expand description

@brief Mutex structure. Must never be modified by the user.

Fields§

§mutex: mutex_t

@brief The mutex used for locking. Must never be changed by the user. @internal

§refcount: u16

@brief Number of locks owned by the thread owner @internal

§owner: kernel_pid_t

@brief Owner thread of the mutex. @details Owner is written by the mutex holder, and read concurrently to ensure consistency, atomic_int_least16_t is used. Note @ref kernel_pid_t is an int16 @internal

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.