Skip to content

Commit 2a305ad

Browse files
kpamnanyDrvi
authored andcommitted
RAI: Change task ordering behavior to prioritize older tasks
1 parent 9435b23 commit 2a305ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/partr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function multiq_sift_down(heap::taskheap, idx::Int32)
5050
child = Int(child)
5151
child > length(heap.tasks) && break
5252
if isassigned(heap.tasks, child) &&
53-
heap.tasks[child].priority < heap.tasks[idx].priority
53+
heap.tasks[child].priority <= heap.tasks[idx].priority
5454
t = heap.tasks[idx]
5555
heap.tasks[idx] = heap.tasks[child]
5656
heap.tasks[child] = t

0 commit comments

Comments
 (0)