Struct cortex_m::interrupt::CriticalSection
source · pub struct CriticalSection { /* private fields */ }
Expand description
Critical section token
Indicates that you are executing code within a critical section
Implementations§
source§impl CriticalSection
impl CriticalSection
sourcepub unsafe fn new() -> CriticalSection
pub unsafe fn new() -> CriticalSection
Creates a critical section token
This method is meant to be used to create safe abstractions rather than meant to be directly used in applications.