Struct esp32s3_hal::xtensa_lx::mutex::CriticalSectionMutex
pub struct CriticalSectionMutex<T> { /* private fields */ }
Expand description
A Mutex based on critical sections
Safety
This Mutex is only safe on single-core applications.
A CriticalSection
is not sufficient to ensure exclusive access across cores.
Implementations§
§impl<T> CriticalSectionMutex<T>
impl<T> CriticalSectionMutex<T>
pub const fn new(data: T) -> CriticalSectionMutex<T>
pub const fn new(data: T) -> CriticalSectionMutex<T>
Create a new mutex
Trait Implementations§
§impl<T> Default for CriticalSectionMutex<T>where
T: Default,
impl<T> Default for CriticalSectionMutex<T>where T: Default,
§fn default() -> CriticalSectionMutex<T>
fn default() -> CriticalSectionMutex<T>
Returns the “default value” for a type. Read more