Struct r3_core::kernel::mutex::MutexDefiner
source · pub struct MutexDefiner<System> { /* private fields */ }
Expand description
The definer (static builder) for MutexRef
.
Implementations§
source§impl<System: KernelMutex> MutexDefiner<System>
impl<System: KernelMutex> MutexDefiner<System>
sourcepub const fn protocol(self, protocol: MutexProtocol) -> Self
pub const fn protocol(self, protocol: MutexProtocol) -> Self
Specify the mutex’s protocol. Defaults to None
when unspecified.
sourcepub const fn finish<C: CfgMutex<System = System>>(
self,
c: &mut Cfg<'_, C>
) -> StaticMutex<System>
pub const fn finish<C: CfgMutex<System = System>>( self, c: &mut Cfg<'_, C> ) -> StaticMutex<System>
Complete the definition of a mutex, returning a reference to the mutex.