]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks: Change the task API so that the callback takes 3 arguments.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 25 May 2018 12:04:04 +0000 (14:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 26 May 2018 17:23:57 +0000 (19:23 +0200)
commit9f6af3322287b71b0f03cf24dd6df9f2f81bbf3c
tree510ce1dbc5188883040961e2e75927bc9efeec21
parent8c126c7235ced98986a57175a62503d5166ffe19
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.
15 files changed:
include/proto/proxy.h
include/proto/stream.h
include/types/task.h
src/checks.c
src/dns.c
src/flt_spoe.c
src/haproxy.c
src/hlua.c
src/mux_h2.c
src/peers.c
src/proxy.c
src/session.c
src/stick_table.c
src/stream.c
src/task.c