]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: make wake_thread() take care of the sleeping threads mask
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jun 2022 07:14:40 +0000 (09:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commitf3efef4d60458fb1d40ac6978169f3e9479f1121
treed7b656a86fb7ccf4b1cd190407eded4a36f55152
parent3fdacdddaff55c754b24813f4832518b87791efc
MINOR: thread: make wake_thread() take care of the sleeping threads mask

Almost every call place of wake_thread() checks for sleeping threads and
clears the sleeping mask itself, while the function is solely used for
there. Let's move the check and the clearing of the bit inside the function
itself. Note that updt_fd_polling() still performs the check because its
rules are a bit different.
include/haproxy/fd.h
src/fd.c
src/task.c