Struct cortex_m::interrupt::Mutex
[−]
[src]
pub struct Mutex<T> { /* fields omitted */ }
A "mutex" based on critical sections
Methods
impl<T> Mutex<T>
[src]
const fn new(value: T) -> Self
Creates a new mutex
impl<T> Mutex<T>
[src]
fn borrow<'cs>(&self, _ctxt: &'cs CriticalSection) -> &'cs T
Borrows the data for the duration of the critical section
Trait Implementations
impl<T> Sync for Mutex<T> where
T: Send,
[src]
T: Send,