Function preemption::hold_preemption
source · pub fn hold_preemption() -> PreemptionGuard
Expand description
Prevents preemption (preemptive task switching) from occurring until the returned guard object is dropped.
If this results in a transition from preemption being enabled to being disabled on this CPU, the local timer interrupt used for preemptive task switches will also be disabled until preemption is re-enabled.