Struct riot_sys::rmutex_t[][src]

#[repr(C)]
pub struct rmutex_t { pub mutex: mutex_t, pub refcount: u16, pub owner: atomic_int_least16_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: atomic_int_least16_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

Performs the conversion.

Performs the conversion.

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.