MINOR: task: export global_task_mask
authorWilly Tarreau <w@1wt.eu>
Thu, 16 May 2019 15:37:27 +0000 (17:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 May 2019 16:02:03 +0000 (18:02 +0200)
It will be used in debugging functions and must be exported.

include/proto/task.h

index df9bc2a..34757f1 100644 (file)
@@ -84,6 +84,7 @@
 /* a few exported variables */
 extern unsigned int nb_tasks;     /* total number of tasks */
 extern volatile unsigned long active_tasks_mask; /* Mask of threads with active tasks */
+extern volatile unsigned long global_tasks_mask; /* Mask of threads with tasks in the global runqueue */
 extern unsigned int tasks_run_queue;    /* run queue size */
 extern unsigned int tasks_run_queue_cur;
 extern unsigned int nb_tasks_cur;