commit | 71a6a8efaa6770a505788f872174c1b82c31c1f5 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Jul 27 16:33:28 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:32 2017 +0100 |
tree | 802e1f81f5360f6f16b0b01a605404c2ea261981 | |
parent | e95f2c3ef5489143286e89b288d4950c1d95eb21 [diff] |
MEDIUM: threads/filters: Add init/deinit callback per thread Now, it is possible to define init_per_thread and deinit_per_thread callbacks to deal with ressources allocation for each thread. This is the filter responsibility to deal with concurrency. This is also the filter responsibility to know if HAProxy is started with some threads. A good way to do so is to check "global.nbthread" value. If it is greater than 1, then _per_thread callbacks will be called.