commit | 415f611ff48916cb46a8f29c7510667d3fd01a1a | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Jul 25 16:52:58 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:29 2017 +0100 |
tree | 8591d0cebc4c61f59894691829581531285d36a6 | |
parent | 1a2b56ea8e33805996994e64aa74c348cf543116 [diff] |
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).