]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: clock: make global_now_ms a pointer
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 30 May 2025 10:04:53 +0000 (12:04 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 29 Jul 2025 16:04:14 +0000 (18:04 +0200)
commit4a20b3835a1dd8124c61d4811ade3f7e72889695
treeb7e528552a7fb5ef79263f25519ae1a4274caa47
parent713ebd2750928c0692e0834049800737716831a1
MINOR: clock: make global_now_ms a pointer

This is preparation work for shared counters between co-processes. As
co-processes will need to share a common date. global_now_ms will be used
for that as it will point to the shm when sharing is enabled.

Thus in this patch we turn global_now_ms into a pointer (and adjust the
places where it is written to and read from, hopefully atomic operations
through pointer are already used so the change is trivial)

For now global_now_ms points to process-local _global_now_ms which is a
fallback for when sharing through the shm is not enabled.
include/haproxy/ticks.h
src/clock.c
src/freq_ctr.c
src/sock_inet.c