Skip to content
Snippets Groups Projects
Commit 0090e7f6 authored by Ruben Asplund's avatar Ruben Asplund
Browse files

Minor change to blocking function

parent 92b2e755
Branches master
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ pub fn blocking(task: &Task, tasks: &Tasks) -> u32 {
if ip.contains_key(r) {
let prio_ceiling = &ip[r];
// Is the resource prio ceiling higher than task prio OR task is using the resource
if (prio_ceiling > &task.prio) || tr[&task.id].contains(r) {
if (prio_ceiling >= &task.prio) || tr[&task.id].contains(r) {
blocking_resources.insert(r);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment