]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] uninline task_wakeup
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Apr 2007 11:15:14 +0000 (13:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Apr 2007 12:38:03 +0000 (14:38 +0200)
task_wakup has become bigger since we used the trees. Let's not
inline it anymore.

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

index 424a46c6d0b02db4c2b92ee67903f8e4878ef679..2c724ad61facaff1b6188487ac749005f7385c0a 100644 (file)
@@ -38,7 +38,9 @@ extern void *run_queue;
 void *tree_delete(void *node);
 
 /* 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)
                return t;
index 2fd6efa2a9a825f26165d07a0387885ed6a09107..d236d9fdc7ec023fe3c1b911cd0281cfe87f2247 100644 (file)
@@ -43,6 +43,10 @@ void *tree_delete(void *node) {
     return __tree_delete(node);
 }
 
+struct task *_task_wakeup(struct task *t)
+{
+       return __task_wakeup(t);
+}
 /*
  * task_queue()
  *