MINOR: thread: use a dedicated static pthread_t array in thread.c
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 20:53:51 +0000 (22:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:41:15 +0000 (01:41 +0200)
commit5e03dfaaf60e3051c195c785aab0122a82b5196c
tree993e7b493286ee62500636f5dcb2febbb2aedc4e
parent4eeb88363c6bc3e1b26b77e138afed2b289f6954
MINOR: thread: use a dedicated static pthread_t array in thread.c

This removes the thread identifiers from struct thread_info and moves
them only in static array in thread.c since it's now the only file that
needs to touch it. It's also the only file that needs to include
pthread.h, beyond haproxy.c which needs it to start the poll loop. As
a result, much less system includes are needed and the LoC reduced by
around 3%.
include/haproxy/thread-t.h
include/haproxy/tinfo-t.h
src/haproxy.c
src/thread.c