better task ordering
authorChristian Grothoff <christian@grothoff.org>
Sat, 15 Feb 2020 11:25:06 +0000 (12:25 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 15 Feb 2020 11:25:06 +0000 (12:25 +0100)
src/util/scheduler.c

index 3d3e5216dbac4981e65862ddd14351a074fc1d5d..45a6b61e5edcf16598b9447c0cc0d690a8e84ca4 100644 (file)
@@ -513,9 +513,9 @@ queue_ready_task (struct GNUNET_SCHEDULER_Task *task)
 {
   enum GNUNET_SCHEDULER_Priority p = check_priority (task->priority);
 
-  GNUNET_CONTAINER_DLL_insert (ready_head[p],
-                               ready_tail[p],
-                               task);
+  GNUNET_CONTAINER_DLL_insert_tail (ready_head[p],
+                                    ready_tail[p],
+                                    task);
   task->in_ready_list = GNUNET_YES;
   ready_count++;
 }