pub unsafe extern "C" fn task_set_priority(task: task_t, prio: u32)
Expand description

Sets the priority of the specified task.

If the specified task’s state is available to be scheduled (e.g. not blocked) and new priority is higher than the currently running task, a context switch may occur.

\param task The task to set \param prio The new priority of the task