]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: fd: simplify the fd_*_{recv,send} functions using BTS/BTR
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Sep 2019 11:22:50 +0000 (13:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Sep 2019 07:31:18 +0000 (09:31 +0200)
commitf8ecc7f667255f9851a82d01c4daf8a523ca7d88
tree8e4c2c24c88a76e5afca611bca7f71a0601357b8
parent5bee3e2f4745040e27bf146a380e835c0704e848
MEDIUM: fd: simplify the fd_*_{recv,send} functions using BTS/BTR

Now that we don't have to update FD_EV_POLLED_* at the same time as
FD_EV_ACTIVE_*, we don't need to use a CAS anymore, a bit-test-and-set
operation is enough. Doing so reduces the code size by a bit more than
1 kB. One function was special, fd_done_recv(), whose comments and doc
were inaccurate for the part related to the lack of polling.
include/proto/fd.h
include/types/fd.h