]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: clock: split local and global date updates
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Sep 2022 05:37:27 +0000 (07:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Sep 2022 07:06:28 +0000 (09:06 +0200)
commita70042067180b4fa068909a2bff48227bb8e3c98
tree42d431801e6aada7a3789442c4b3bc2adfe1554f
parentae1e14d65b4e96c01a02e100a76d10c06b341df3
MINOR: clock: split local and global date updates

Pollers that support busy polling spend a lot of time (and cause
contention) updating the global date when they're looping over themselves
while it serves no purpose: what's needed is only an update on the local
date to know when to stop looping.

This patch splits clock_pudate_date() into a pair of local and global
update functions, so that pollers can be easily improved.
include/haproxy/clock.h
src/clock.c