Function taskctx::enable_preempt

source ·
pub fn enable_preempt()
Expand description

Enables kernel preemption.

It will decrease the preemption disable counter of the current task.Once the counter is zero, the task can be preempted.