]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: initcall: use initcalls for most post_{check,deinit} and per_thread*
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 10:21:50 +0000 (11:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commit172f5ce9485cddd2619fa6b87d8b4015812b9fd7
treef44b2823abab11d6fcb4497fd4c0e77fa78646e5
parent8071338c786c364f0708e189267fe7fdfa64d686
MINOR: initcall: use initcalls for most post_{check,deinit} and per_thread*

Most calls to hap_register_post_check(), hap_register_post_deinit(),
hap_register_per_thread_init(), hap_register_per_thread_deinit() can
be done using initcalls and will not require a constructor anymore.
Let's create a set of simplified macros for this, called respectively
REGISTER_POST_CHECK, REGISTER_POST_DEINIT, REGISTER_PER_THREAD_INIT,
and REGISTER_PER_THREAD_DEINIT.

Some files were not modified because they wouldn't benefit from this
or because they conditionally register (e.g. the pollers).
12 files changed:
include/types/global.h
src/51d.c
src/checks.c
src/chunk.c
src/da.c
src/dns.c
src/fd.c
src/filters.c
src/log.c
src/mux_h1.c
src/mux_h2.c
src/wurfl.c