mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 05:41:26 +02:00
[MINOR] uninline task_wakeup
task_wakup has become bigger since we used the trees. Let's not inline it anymore.
This commit is contained in:
parent
8bb46f4015
commit
e33aecefa6
@ -38,7 +38,9 @@ extern void *run_queue;
|
|||||||
void *tree_delete(void *node);
|
void *tree_delete(void *node);
|
||||||
|
|
||||||
/* puts the task <t> in run queue <q>, and returns <t> */
|
/* puts the task <t> in run queue <q>, and returns <t> */
|
||||||
static inline struct task *task_wakeup(struct task *t)
|
#define task_wakeup _task_wakeup
|
||||||
|
struct task *_task_wakeup(struct task *t);
|
||||||
|
static inline struct task *__task_wakeup(struct task *t)
|
||||||
{
|
{
|
||||||
if (t->state == TASK_RUNNING)
|
if (t->state == TASK_RUNNING)
|
||||||
return t;
|
return t;
|
||||||
|
@ -43,6 +43,10 @@ void *tree_delete(void *node) {
|
|||||||
return __tree_delete(node);
|
return __tree_delete(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct task *_task_wakeup(struct task *t)
|
||||||
|
{
|
||||||
|
return __task_wakeup(t);
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* task_queue()
|
* task_queue()
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user