]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: hlua: avoid confusion between internal timers and tick based timers
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Apr 2023 16:41:04 +0000 (18:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Apr 2023 09:03:31 +0000 (11:03 +0200)
commit2a9764baae98a5f95ef08ea57129880ef223c268
tree40df853dd4e84b7951de297600a62d81e3feccd3
parent58e36e5b144da7a810a84a041a68b1ebf5ec516b
CLEANUP: hlua: avoid confusion between internal timers and tick based timers

Not all hlua "time" variables use the same time logic.

hlua->wake_time relies on ticks since its meant to be used in conjunction
with task scheduling. Thus, it should be stored as a signed int and
manipulated using the tick api.
Adding a few comments about that to prevent mixups with hlua internal
timer api which doesn't rely on the ticks api.
include/haproxy/hlua-t.h
src/hlua.c