]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] rework the wait queue mechanism
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Jun 2008 15:00:59 +0000 (17:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 29 Jun 2008 15:00:59 +0000 (17:00 +0200)
commit28c41a40416a8716cee1fb0581ce338bee098cf5
treea560ed0ae3e4525086144d65d54f02d71ca4640f
parent284c7b319566a66d5b742c905072175aac6445e1
[MEDIUM] rework the wait queue mechanism

The wait queues now rely on 4 trees for past, present and future
timers. The computations are cleaner and more reliable. The
wake_expired_tasks function has become simpler. Also, a bug
previously introduced in task_queue() by the first introduction
of eb_trees has been fixed (the eb->key was never updated).
src/task.c
tests/test-sched.cfg [new file with mode: 0644]