]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks: Merge task_delete() and task_free() into task_destroy().
authorOlivier Houchard <cognet@ci0.org>
Wed, 17 Apr 2019 20:51:06 +0000 (22:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Apr 2019 08:10:04 +0000 (10:10 +0200)
commit3f795f76e87549183ee2985754857e23750d7e5f
treed93f37b22f950b24341bb1a65ace5468320b83b4
parent03dd029a5b84bb4de13c8c61af22555d294f64b2
MEDIUM: tasks: Merge task_delete() and task_free() into task_destroy().

task_delete() was never used without calling task_free() just after, and
task_free() was only used on error pathes to destroy a just-created task,
so merge them into task_destroy(), that will remove the task from the
wait queue, and make sure the task is either destroyed immediately if it's
not in the run queue, or destroyed when it's supposed to run.
14 files changed:
include/proto/applet.h
include/proto/task.h
src/checks.c
src/dns.c
src/flt_spoe.c
src/haproxy.c
src/hlua.c
src/mux_h1.c
src/mux_h2.c
src/mworker.c
src/peers.c
src/session.c
src/stream.c
src/task.c