Skip to content

Commit

Permalink
Merge pull request #764 from stlankes/aarch64
Browse files Browse the repository at this point in the history
take always the oldest task from the queue
  • Loading branch information
stlankes authored Jun 15, 2023
2 parents 5c4a145 + 68660b5 commit 33f512a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl PriorityTaskQueue {
}

fn pop_from_queue(&mut self, queue_index: usize) -> Option<Rc<RefCell<Task>>> {
let task = self.queues[queue_index].pop_back();
let task = self.queues[queue_index].pop_front();
if self.queues[queue_index].is_empty() {
self.prio_bitmap &= !(1 << queue_index as u64);
}
Expand Down

0 comments on commit 33f512a

Please sign in to comment.