From: Christian Grothoff Date: Sat, 15 Feb 2020 11:25:06 +0000 (+0100) Subject: better task ordering X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e57177325f2b3f4d66598ff501760da0030e7dd6;p=oweals%2Fgnunet.git better task ordering --- diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 3d3e5216d..45a6b61e5 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -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++; }