Struct cortex_m::interrupt::Mutex[][src]

pub struct Mutex<T> { /* fields omitted */ }

A "mutex" based on critical sections

Methods

impl<T> Mutex<T>
[src]

Creates a new mutex

impl<T> Mutex<T>
[src]

Gets access to the inner data

NOTE this prevents interrupts handlers from running thus gaining exclusive access to the processor

Trait Implementations

impl<T> Sync for Mutex<T>
[src]

Auto Trait Implementations

impl<T> Send for Mutex<T> where
    T: Send