commit | 26c250683f29c74b347d05609a9cff2785106893 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Mar 08 09:38:41 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Mar 08 09:38:41 2009 +0100 |
tree | 67ef9641794f8e48a612981bae2658c2b39cfd80 | |
parent | 41365225276773d83e52e6f2151c9a075ba8dde2 [diff] |
[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.