]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: task: export run_tasks_from_list
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Mar 2020 13:59:28 +0000 (14:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Mar 2020 14:26:10 +0000 (15:26 +0100)
This will help refine debug traces.

include/proto/task.h
src/task.c

index 68a0a18d1b5a16e5b0100a235c4f8ff725d0fe61..84c2f8ae0c57685a2b9d72c4a3f0dad0affe6ff5 100644 (file)
@@ -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 :
index 319ae93267bc1a34a89af7a696eb7e9eb85439a0..2952d2ad393de2828b834563050b82d7295d9ecc 100644 (file)
@@ -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;