MINOR: threads: Only consider running threads to end a thread harmeless period
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Apr 2021 09:33:39 +0000 (11:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Sat, 17 Apr 2021 09:14:58 +0000 (11:14 +0200)
commit76b44195c9020e0f2cab4d983e9346d9de6c895f
treee0ff359e1f147e196378b1628ad7b04f67097511
parentf63a18550073e821976606f9602c261976939ae9
MINOR: threads: Only consider running threads to end a thread harmeless period

When a thread ends its harmeless period, we must only consider running
threads when testing threads_want_rdv_mask mask. To do so, we reintroduce
all_threads_mask mask in the bitwise operation (It was removed to fix a
deadlock).

Note that for now it is useless because there is no way to stop threads or
to have threads reserved for another task. But it is safer this way to avoid
bugs in the future.
include/haproxy/thread.h
src/thread.c