commit | 0ccd32285fbe8a1a394f7b8fb9f7e6282ec9a32d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jul 30 10:34:35 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jul 30 11:10:46 2018 +0200 |
tree | 3cba3c31fbec2e1a938dc365c9c40b2e60a754a0 | |
parent | 5e954e1f27729f85eabc4fe4159a3460774f3abc [diff] |
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.