]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] minor update to the task api: let the scheduler queue itself
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 08:38:41 +0000 (09:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 08:38:41 +0000 (09:38 +0100)
commit26c250683f29c74b347d05609a9cff2785106893
tree67ef9641794f8e48a612981bae2658c2b39cfd80
parent41365225276773d83e52e6f2151c9a075ba8dde2
[MEDIUM] minor update to the task api: let the scheduler queue itself

All the tasks callbacks had to requeue the task themselves, and update
a global timeout. This was not convenient at all. Now the API has been
simplified. The tasks callbacks only have to update their expire timer,
and return either a pointer to the task or NULL if the task has been
deleted. The scheduler will take care of requeuing the task at the
proper place in the wait queue.
include/common/appsession.h
include/proto/checks.h
include/proto/proto_uxst.h
include/proto/session.h
include/types/protocols.h
include/types/task.h
src/appsession.c
src/checks.c
src/proto_uxst.c
src/session.c
src/task.c