]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: make fd_clr_running() return the remaining running mask
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Mar 2021 09:27:56 +0000 (10:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Mar 2021 16:17:21 +0000 (17:17 +0100)
commit6e8e10b4159f4a31e6aaa535e38dc035f8711787
tree2e3a619695e441065761320d8b0ecd3a30248116
parent1e8433f594de4b860e5205fdd6cb40d91ff58f17
MINOR: fd: make fd_clr_running() return the remaining running mask

We'll need to know that a thread is the last one to use an fd, so let's
make fd_clr_running() return the remaining bits after removal. Note that
in practice we're only interested in knowing if it's zero but the compiler
doesn't make use of the clags after the AND and emits a CMPXCHG anyway :-/

This will need to be backported to 2.2 to fix an issue.
include/haproxy/fd.h