Skip to main content

with_irqs_disabled

Function with_irqs_disabled 

Source
pub fn with_irqs_disabled<R>(f: impl FnOnce(&IrqDisabledToken) -> R) -> R
Expand description

Execute a closure with IRQs disabled, providing an IrqDisabledToken as proof.

Saves and disables IRQs before calling f, then restores the previous flag state.