]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: event_hdl: add event_hdl_async_equeue_size() function
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 1 Mar 2023 14:02:04 +0000 (15:02 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:17 +0000 (08:58 +0200)
commitb4b7320a6af10488a9568323218d0c0de669c805
treede5851d32460ca7bd47a2047d50701fb3ec2fe6e
parent9e98a27d6a1c393c3b71c9cce8c6e54f4b09605e
MINOR: event_hdl: add event_hdl_async_equeue_size() function

Use event_hdl_async_equeue_size() in advanced async task handler to
get the near real-time event queue size.

By near real-time, you should understand that the queue size is not
updated during element insertion/removal, but shortly before insertion
and shortly after removal, so the size should reflect the approximate
queue size at a given time but should definitely not be used as a
unique source of truth.

If 68e692da0 ("MINOR: event_hdl: add event handler base api")
is being backported, then this commit should be backported with it.
include/haproxy/event_hdl-t.h
include/haproxy/event_hdl.h
src/event_hdl.c