From 27d00c01670ea1ea1f41fefe7adf1229e5c62f68 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 3 Mar 2020 14:59:28 +0100 Subject: [PATCH] MINOR: task: export run_tasks_from_list This will help refine debug traces. --- include/proto/task.h | 1 + src/task.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/proto/task.h b/include/proto/task.h index 68a0a18d1..84c2f8ae0 100644 --- a/include/proto/task.h +++ b/include/proto/task.h @@ -608,6 +608,7 @@ struct work_list *work_list_create(int nbthread, void *arg); void work_list_destroy(struct work_list *work, int nbthread); +int run_tasks_from_list(struct list *list, int max); /* * This does 3 things : diff --git a/src/task.c b/src/task.c index 319ae9326..2952d2ad3 100644 --- a/src/task.c +++ b/src/task.c @@ -319,7 +319,7 @@ int next_timer_expiry() * the number of entries effectively processed (tasks and tasklets merged). * The count of tasks in the list for the current thread is adjusted. */ -static int run_tasks_from_list(struct list *list, int max) +int run_tasks_from_list(struct list *list, int max) { struct task *(*process)(struct task *t, void *ctx, unsigned short state); struct task *t;