commit | f8ecc7f667255f9851a82d01c4daf8a523ca7d88 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Sep 04 13:22:50 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Sep 05 09:31:18 2019 +0200 |
tree | 8e4c2c24c88a76e5afca611bca7f71a0601357b8 | |
parent | 5bee3e2f4745040e27bf146a380e835c0704e848 [diff] |
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.