]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: soft-stop: let the first stopper only signal other threads
authorWilly Tarreau <w@1wt.eu>
Wed, 13 May 2020 12:30:25 +0000 (14:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 May 2020 12:30:25 +0000 (14:30 +0200)
commitd645574fd49d19da9513d19f78648de2c9bc670a
tree7399bfeaaa70025f22995466b30d048f77b2b8e5
parentd7a6b2f742340ae64eead154bce80ccb25158f84
MINOR: soft-stop: let the first stopper only signal other threads

When the first thread stops and wakes others up, it's possible some of
them will also start to wake others in parallel. Let's make give this
notification task to the very first one instead since it's enough and
can reduce the amount of needless (though harmless) wakeup calls.
src/haproxy.c