]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: poller: centralize poll return handling
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jun 2022 13:21:34 +0000 (15:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commit058b2c1015dc8f6869757d0e9310454fa7669c8e
tree3a6aecb44bd85f9ea388c4b55914928e70a9396b
parentbdcd32598f4f10a9cdf266f5375b1600b9f8a9a3
MINOR: poller: centralize poll return handling

When returning from the polling syscall, all pollers have a certain
dance to follow, made of wall clock updates, thread harmless updates,
idle time management and sleeping mask updates. Let's have a centralized
function to deal with all of this boring stuff: fd_leaving_poll(), and
make all the pollers use it.
include/haproxy/fd.h
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/fd.c