REORG: thread: move the thread init/affinity/stop to thread.c
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 20:22:40 +0000 (22:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:41:14 +0000 (01:41 +0200)
commitd10385ac4bc7a81604c5024279c500dc482bd880
treeb073d33d8ef7770091f21b1a14495971ef413a13
parent19b18ad552f612e45a79e248460a6236d4baa931
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.
include/haproxy/thread.h
src/haproxy.c
src/thread.c