REORG: clock: move the clock_id initialization to clock.c
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 10:27:54 +0000 (12:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commit44c58da52f741ebdddaf873561f5d7e827117600
treea6ed4d8198555e78ef5c528aabf9b2a7657b10ef
parent2c6a998727bc5e322a58593f64bdffa2cd21999c
REORG: clock: move the clock_id initialization to clock.c

This was previously open-coded in run_thread_poll_loop(). Now that
we have clock.c dedicated to such stuff, let's move the code there
so that we don't need to keep such ifdefs nor to depend on the
clock_id.
include/haproxy/clock.h
src/clock.c
src/haproxy.c