mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
CLEANUP: task: move the task_per_thread definition to task.h
It's the second time I look for it and can't find it because it's not in the right file.
This commit is contained in:
parent
eacb022676
commit
9634e86dc7
@ -98,16 +98,6 @@ extern struct eb_root rqueue; /* tree constituting the run queue */
|
|||||||
extern int global_rqueue_size; /* Number of element sin the global runqueue */
|
extern int global_rqueue_size; /* Number of element sin the global runqueue */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* force to split per-thread stuff into separate cache lines */
|
|
||||||
struct task_per_thread {
|
|
||||||
struct eb_root timers; /* tree constituting the per-thread wait queue */
|
|
||||||
struct eb_root rqueue; /* tree constituting the per-thread run queue */
|
|
||||||
struct list task_list; /* List of tasks to be run, mixing tasks and tasklets */
|
|
||||||
int task_list_size; /* Number of tasks in the task_list */
|
|
||||||
int rqueue_size; /* Number of elements in the per-thread run queue */
|
|
||||||
__attribute__((aligned(64))) char end[0];
|
|
||||||
};
|
|
||||||
|
|
||||||
extern struct task_per_thread task_per_thread[MAX_THREADS];
|
extern struct task_per_thread task_per_thread[MAX_THREADS];
|
||||||
|
|
||||||
__decl_hathreads(extern HA_SPINLOCK_T rq_lock); /* spin lock related to run queue */
|
__decl_hathreads(extern HA_SPINLOCK_T rq_lock); /* spin lock related to run queue */
|
||||||
|
@ -57,6 +57,16 @@ struct notification {
|
|||||||
__decl_hathreads(HA_SPINLOCK_T lock);
|
__decl_hathreads(HA_SPINLOCK_T lock);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* force to split per-thread stuff into separate cache lines */
|
||||||
|
struct task_per_thread {
|
||||||
|
struct eb_root timers; /* tree constituting the per-thread wait queue */
|
||||||
|
struct eb_root rqueue; /* tree constituting the per-thread run queue */
|
||||||
|
struct list task_list; /* List of tasks to be run, mixing tasks and tasklets */
|
||||||
|
int task_list_size; /* Number of tasks in the task_list */
|
||||||
|
int rqueue_size; /* Number of elements in the per-thread run queue */
|
||||||
|
__attribute__((aligned(64))) char end[0];
|
||||||
|
};
|
||||||
|
|
||||||
/* This part is common between struct task and struct tasklet so that tasks
|
/* This part is common between struct task and struct tasklet so that tasks
|
||||||
* can be used as-is as tasklets.
|
* can be used as-is as tasklets.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user