MINOR: threads: Add mechanism to register per-thread init/deinit functions
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 Jul 2017 14:52:58 +0000 (16:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:29 +0000 (13:58 +0100)
commit415f611ff48916cb46a8f29c7510667d3fd01a1a
tree8591d0cebc4c61f59894691829581531285d36a6
parent1a2b56ea8e33805996994e64aa74c348cf543116
MINOR: threads: Add mechanism to register per-thread init/deinit functions

hap_register_per_thread_init and hap_register_per_thread_deinit functions has
been added to register functions to do, for each thread, respectively, some
initialization and deinitialization. These functions are added in the global
lists per_thread_init_list and per_thread_deinit_list.

These functions are called only when HAProxy is started with more than 1 thread
(global.nbthread > 1).
include/types/global.h
src/haproxy.c