]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: make threads_{harmless|want_rdv}_mask constant 0 without threads
authorWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 05:48:18 +0000 (07:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 09:50:48 +0000 (11:50 +0200)
commit441259c5614c69c53acb09f64b59465fe165a926
tree158cc8be6c06d872491313e10f19d90129b51e6d
parent05ed14cfc453dce2efe4e0f1df9d3259f2871c3d
MINOR: threads: make threads_{harmless|want_rdv}_mask constant 0 without threads

Some code starts to add ifdefs everywhere to work around the lack of
threads_harmless_mask when threads are not compiled in. This one is
often used to indicate a thread having joined the rendez-vous point or
a thread sleeping in the poller. By setting it to zero we translate
what usually is required in debugging code (i.e. the only thread is
currently working) and for signal handlers we can use a combination of
threads_harmless_mask and sleeping_threads_mask to detect the polling
cases as well. Similarly do the same with threads_want_rdv_mask which
is less often used though.
include/common/hathreads.h