Function axtask::set_priority
source · pub fn set_priority(prio: isize) -> bool
Available on crate feature
multitask
only.Expand description
Set the priority for current task.
The range of the priority is dependent on the underlying scheduler. For example, in the CFS scheduler, the priority is the nice value, ranging from -20 to 19.
Returns true
if the priority is set successfully.