]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: event_hdl: add event_hdl_sub_list_empty() helper func
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 18 Oct 2024 16:45:45 +0000 (18:45 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 7 Nov 2024 10:35:55 +0000 (11:35 +0100)
commit79a346aa283af1de1094893f0517bda6c0d39e9a
treef1623b8d8c53d34d19e6b83a93a5bab8b0ed60a4
parent5dcf2012fc035e790c118590a12240e0769fbcaa
MINOR: event_hdl: add event_hdl_sub_list_empty() helper func

event_hdl_sub_list_empty() may be used to know if the subscription list
passed as argument is empty or not (ie: if there currently are any
subcribers or not). It can be useful to know if the subscription is empty
is order to avoid unecessary preparation work and skip event publishing to
save CPU time if we already know that no one is interested in tracking the
changes for a given subscription list.
include/haproxy/event_hdl.h