commit | d10385ac4bc7a81604c5024279c500dc482bd880 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 06 22:22:40 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 07 01:41:14 2021 +0200 |
tree | b073d33d8ef7770091f21b1a14495971ef413a13 | |
parent | 19b18ad552f612e45a79e248460a6236d4baa931 [diff] |
REORG: thread: move the thread init/affinity/stop to thread.c haproxy.c still has to deal with pthread-specific low-level stuff that is OS-dependent. We should not have to deal with this there, and we do not need to access pthread anywhere else. Let's move these 3 functions to thread.c and keep empty inline ones for when threads are disabled.