pub struct RawMutex(/* private fields */);Expand description
Low-level recursive mutex wrapper for FreeRTOS.
This is the underlying implementation of the mutex that directly interfaces with FreeRTOS semaphore APIs. It’s recursive, meaning the same thread can lock it multiple times.
§Note
Users should typically use Mutex<T> instead, which provides type-safe
data protection. This type is exposed for advanced use cases.
Implementations§
Trait Implementations§
Source§impl RawMutex for RawMutex
impl RawMutex for RawMutex
Source§fn lock(&self) -> OsalRsBool
fn lock(&self) -> OsalRsBool
Locks the mutex (blocking). Read more
Source§fn lock_from_isr(&self) -> OsalRsBool
fn lock_from_isr(&self) -> OsalRsBool
Locks the mutex from ISR context (non-blocking). Read more
Source§fn unlock(&self) -> OsalRsBool
fn unlock(&self) -> OsalRsBool
Unlocks the mutex. Read more
Source§fn unlock_from_isr(&self) -> OsalRsBool
fn unlock_from_isr(&self) -> OsalRsBool
Unlocks the mutex from ISR context. Read more
impl Send for RawMutex
impl Sync for RawMutex
Auto Trait Implementations§
impl Freeze for RawMutex
impl RefUnwindSafe for RawMutex
impl Unpin for RawMutex
impl UnwindSafe for RawMutex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more