Skip to main content

preempt_enable

Function preempt_enable 

Source
pub fn preempt_enable()
Expand description

Decrement the preemption-disable depth for the current CPU. Must be paired with exactly one prior call to preempt_disable.

Includes an underflow guard: if the counter is already 0 (mismatched call), the decrement is skipped and a warning is emitted rather than letting u32 wrap to u32::MAX and disabling the scheduler permanently.