]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: poller: use atomic ops to update the fdtab mask
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jan 2018 17:06:46 +0000 (18:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Feb 2018 15:02:22 +0000 (16:02 +0100)
commit62a627ac197fe69dcf60d87eac943c8f7f8de2f6
treead466480823283c8037cdd34b80feac64ffb9190
parent4d841863377e0a1b00238c4823fe1ae390ad33ab
MEDIUM: poller: use atomic ops to update the fdtab mask

We don't need to lock the fdtab[].lock anymore since we only have one
modification left (update update_mask). Let's use an atomic AND instead.
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c