commit | 5e03dfaaf60e3051c195c785aab0122a82b5196c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 06 22:53:51 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 07 01:41:15 2021 +0200 |
tree | 993e7b493286ee62500636f5dcb2febbb2aedc4e | |
parent | 4eeb88363c6bc3e1b26b77e138afed2b289f6954 [diff] |
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%.