[−][src]Function cntrlr::sync::without_interrupts
pub fn without_interrupts<T, F>(f: F) -> T where
F: FnOnce() -> T,
Runs the passed closure without interrupts, in a critical section.
This can be used as the underlying locking mechanism for
situations where Mutex
is not appropriate.