]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: get rid of MAX_THREADS_MASK
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Jun 2022 09:18:40 +0000 (11:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Jun 2022 09:18:40 +0000 (11:18 +0200)
commit3ccb14d60d8768d8ba8dc029af2fe76e3801226f
tree7298f2febe8ded4f1691e0776f7f51c1af1d9b84
parente35f03239d340735c6f2dbce094995c3fc63f258
MINOR: thread: get rid of MAX_THREADS_MASK

This macro was used both for binding and for lookups. When binding tasks
or FDs, using all_threads_mask instead is better as it will later be per
group. For lookups, ~0UL always does the job. Thus in practice the macro
was already almost not used anymore since the rest of the code could run
fine with a constant of all ones there.
doc/design-thoughts/thread-group.txt
include/haproxy/applet.h
include/haproxy/defaults.h
include/haproxy/task.h
src/check.c
src/dns.c
src/task.c