Skip to content
Snippets Groups Projects
Commit d4631db6 authored by Martin Kröning's avatar Martin Kröning :crab:
Browse files

Scheduler: Feature-gate get_highest_priority

parent 65b73701
No related branches found
No related tags found
No related merge requests found
......@@ -323,6 +323,7 @@ impl PriorityTaskQueue {
}
/// Returns the highest priority of all available task
#[cfg(feature = "smp")]
pub fn get_highest_priority(&self) -> Priority {
if let Some(i) = msb(self.prio_bitmap) {
Priority::from(i.try_into().unwrap())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment