MINOR: thread: keep a bitmask of enabled groups in thread_set
authorWilly Tarreau <w@1wt.eu>
Wed, 1 Mar 2023 10:24:29 +0000 (11:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Apr 2023 14:57:51 +0000 (16:57 +0200)
commit97da942ba6392086d3165835564089cd71cb7b23
tree2d02f9a17d19998d3bb2e7fa0308dd5fad136aa3
parent3f210970bf9450156005e28ee45f64f6d39bc936
MINOR: thread: keep a bitmask of enabled groups in thread_set

We're only checking for 0, 1, or >1 groups enabled there, and we'll soon
need to be more precise and know quickly which groups are non-empty.
Let's just replace the count with a mask of enabled groups. This will
allow to quickly spot the presence of any such group in a set.
include/haproxy/tinfo-t.h
include/haproxy/tinfo.h
src/cfgparse.c
src/thread.c