]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: init: extract the setup and end of threads to their own functions
authorWilly Tarreau <w@1wt.eu>
Tue, 28 Sep 2021 08:36:57 +0000 (10:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Sep 2021 09:44:31 +0000 (11:44 +0200)
commit2d5d4e0c3efa569c19aff66701013e9c20e19979
treeb48bd93743d9678661c17fbab90d90bffc3428b6
parentfb641d7af0a69ab9dcbda99e697dc714f37491a7
MINOR: init: extract the setup and end of threads to their own functions

The startup code was still ugly with tons of unreadable nested ifdefs.
Let's just have one function to set up the extra threads and another one
to wait for their completion. The ifdefs are isolated into their own
functions now and are more readable, just like the end of main(), which
now uses the same statements to start thread 0 with and without threads.
src/haproxy.c