]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: clock: move the updates of cpu/mono time to clock.c
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 08:43:59 +0000 (10:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commitf9d5e1079cf14d532ebd65ee1ada771766114190
tree437be8996759bfc35c1caecea000a052117170ca
parent5554264f314578a3576ba08825c1158b6c4c96a2
REORG: clock: move the updates of cpu/mono time to clock.c

The entering_poll/leaving_poll/measure_idle functions that were hard
to classify and used to move to various locations have now been placed
into clock.c since it's precisely about time-keeping. The functions
were renamed to clock_*. The samp_time and idle_time values are now
static since there is no reason for them to be read from outside.
include/haproxy/clock.h
include/haproxy/task.h
src/clock.c
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/stats.c
src/task.c