Function task::scheduler::inherit_priority
source · pub fn inherit_priority(task: &TaskRef) -> PriorityInheritanceGuard<'_>
Expand description
Modifies the given task’s priority to be the maximum of its priority and the current task’s priority.
Returns a guard which reverts the change when dropped.