MINOR: clock: move the clock_ids to clock.c
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 13:09:17 +0000 (15:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commit2169498941254eef0589d7c078f9955959d4baf5
treec87c6690b67ab5946718b060388040ada072d315
parent6cb0c391e7654e44795e43f9a7bb92c1aee74f95
MINOR: clock: move the clock_ids to clock.c

This removes the knowledge of clockid_t from anywhere but clock.c, thus
eliminating a source of includes burden. The unused clock_id field was
removed from thread_info, and the definition setting of clockid_t was
removed from compat.h. The most visible change is that the function
now_cpu_time_thread() now takes the thread number instead of a tinfo
pointer.
include/haproxy/clock.h
include/haproxy/compat.h
include/haproxy/tinfo-t.h
src/clock.c
src/debug.c
src/wdt.c