Skip to content

Commit

Permalink
RAI: Change task ordering behavior to prioritize older tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany authored and quinnj committed Sep 5, 2023
1 parent 31fe5bc commit 3a07f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/partr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function multiq_sift_down(heap::taskheap, idx::Int32)
child = Int(child)
child > length(heap.tasks) && break
if isassigned(heap.tasks, child) &&
heap.tasks[child].priority < heap.tasks[idx].priority
heap.tasks[child].priority <= heap.tasks[idx].priority
t = heap.tasks[idx]
heap.tasks[idx] = heap.tasks[child]
heap.tasks[child] = t
Expand Down

0 comments on commit 3a07f32

Please sign in to comment.