]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: simplify wake_expired_tasks() to avoid unlocking in the loop
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 18:09:27 +0000 (19:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Nov 2017 10:20:11 +0000 (11:20 +0100)
commitb992ba16ef4b7cb3e293a16229e21df599f412b0
tree668126826279006e8cc371ed1bb662acdc80fde2
parent8d38805d3d9ee732d549918c29ea3446459fae63
MINOR: task: simplify wake_expired_tasks() to avoid unlocking in the loop

This function is sensitive, let's make it shorter by factoring out the
unlock and leave code. This reduced the function's size by a few tens
of bytes and increased the overall performance by about 1%.
src/task.c