MINOR: threads: move "nbthread" parsing to hathreads.c
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Jul 2018 08:34:35 +0000 (10:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Jul 2018 09:10:46 +0000 (11:10 +0200)
commit0ccd32285fbe8a1a394f7b8fb9f7e6282ec9a32d
tree3cba3c31fbec2e1a938dc365c9c40b2e60a754a0
parent5e954e1f27729f85eabc4fe4159a3460774f3abc
MINOR: threads: move "nbthread" parsing to hathreads.c

The purpose is to make sure that all variables which directly depend
on this nbthread argument are set at the right moment. For now only
all_threads_mask needs to be set. It used to be set while calling
thread_sync_init() which is called too late for certain checks. The
same function handles threads and non-threads, which removes the need
for some thread-specific knowledge from cfgparse.c.
include/common/hathreads.h
src/cfgparse.c
src/haproxy.c
src/hathreads.c