From: Willy Tarreau Date: Fri, 18 Jun 2021 07:21:22 +0000 (+0200) Subject: MINOR: queue: create a new structure type "queue" X-Git-Tag: v2.5-dev1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eea3817a47586eb27340f37bd77be155c679f7a0;p=thirdparty%2Fhaproxy.git MINOR: queue: create a new structure type "queue" This structure will be common to proxies and servers and will contain everything needed to handle their respective queues. For now it's only a tree head, a length and an index. --- diff --git a/include/haproxy/queue-t.h b/include/haproxy/queue-t.h index 41022852b6..4478d6c556 100644 --- a/include/haproxy/queue-t.h +++ b/include/haproxy/queue-t.h @@ -39,6 +39,12 @@ struct pendconn { struct eb32_node node; }; +struct queue { + struct eb_root head; /* queued pendconnds */ + unsigned int idx; /* current queuing index */ + unsigned int length; /* number of entries */ +}; + #endif /* _HAPROXY_QUEUE_T_H */ /*