]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: avoid clearing harmless twice in thread_release()
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Jun 2019 06:44:19 +0000 (08:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Jun 2019 06:47:35 +0000 (08:47 +0200)
commit31cba0d3e04cba229cc7c934b88de3755cf21714
treeb6083ebc6742854b90350efa52eab6087af73200
parent19a2e2d91e44d2159256d6948021333afc75fc4b
MINOR: threads: avoid clearing harmless twice in thread_release()

thread_release() is to be called after thread_isolate(), i.e. when the
thread already has its harmless bit cleared. No need to clear it twice,
thus avoid calling thread_harmless_end() and directly check the rdv
bits then loop on them.
src/hathreads.c