Function preemption::preemption_enabled
source · pub fn preemption_enabled() -> bool
Expand description
Returns true
if preemption is currently enabled on this CPU.
Note that unless preemption or interrupts are disabled, this value can’t be used as a lock indicator or property. It is just a snapshot that offers no guarantee that preemption will continue to be enabled or disabled immediately after returning.