commit | 9f6af3322287b71b0f03cf24dd6df9f2f81bbf3c | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri May 25 14:04:04 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat May 26 19:23:57 2018 +0200 |
tree | 510ce1dbc5188883040961e2e75927bc9efeec21 | |
parent | 8c126c7235ced98986a57175a62503d5166ffe19 [diff] |
MINOR: tasks: Change the task API so that the callback takes 3 arguments. In preparation for thread-specific runqueues, change the task API so that the callback takes 3 arguments, the task itself, the context, and the state, those were retrieved from the task before. This will allow these elements to change atomically in the scheduler while the application uses the copied value, and even to have NULL tasks later.