commit | 2d5d4e0c3efa569c19aff66701013e9c20e19979 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Sep 28 10:36:57 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Sep 28 11:44:31 2021 +0200 |
tree | b48bd93743d9678661c17fbab90d90bffc3428b6 | |
parent | fb641d7af0a69ab9dcbda99e697dc714f37491a7 [diff] |
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.