mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 23:02:34 -04:00
MINOR: tasks: Make active_tasks_mask volatile.
To be sure we have the relevant informations, make active_tasks_mask volatile
This commit is contained in:
parent
3201e4e428
commit
9b03c0c9a7
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@
|
|||
|
||||
/* a few exported variables */
|
||||
extern unsigned int nb_tasks; /* total number of tasks */
|
||||
extern unsigned long active_tasks_mask; /* Mask of threads with active tasks */
|
||||
extern volatile unsigned long active_tasks_mask; /* Mask of threads with active tasks */
|
||||
extern unsigned int tasks_run_queue; /* run queue size */
|
||||
extern unsigned int tasks_run_queue_cur;
|
||||
extern unsigned int nb_tasks_cur;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ struct pool_head *pool_head_tasklet;
|
|||
struct pool_head *pool_head_notification;
|
||||
|
||||
unsigned int nb_tasks = 0;
|
||||
unsigned long active_tasks_mask = 0; /* Mask of threads with active tasks */
|
||||
volatile unsigned long active_tasks_mask = 0; /* Mask of threads with active tasks */
|
||||
unsigned long global_tasks_mask = 0; /* Mask of threads with tasks in the global runqueue */
|
||||
unsigned int tasks_run_queue = 0;
|
||||
unsigned int tasks_run_queue_cur = 0; /* copy of the run queue size */
|
||||
|
|
|
|||
Loading…
Reference in a new issue