Function cortex_m_rtfm::atomic [] [src]

pub fn atomic<R, F>(t: &mut Threshold, f: F) -> R where
    F: FnOnce(&mut Threshold) -> R, 

Executes the closure f in a preemption free context

During the execution of the closure no task can preempt the current task.