MINOR: time: export the global_now variable
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2021 17:52:18 +0000 (18:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Mar 2021 08:23:21 +0000 (09:23 +0100)
commitffd80fd42208681731d9fd53fcf8741139896638
tree9f10ab62f791362cce0321a7752cdd2fdba99d36
parentf9c7675a74623f68cc0315bed83aa0b32c2a20a0
MINOR: time: export the global_now variable

This is the process-wide monotonic time that is used to update each
thread's own time. It may be required at a few places where a strictly
monotonic clock is required such as freq_ctr. It will be have to be
backported as a dependency of a forthcoming fix.

(cherry picked from commit 650f374f24c4dd14e90d336c72c2370242be1459)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit f520788e171f3393347da00358ae4ca2f30789a2)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 8ff0c907c7f9edc3f778b51e6980b1cd0bcff5e6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/common/time.h
src/time.c