From eea3817a47586eb27340f37bd77be155c679f7a0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 18 Jun 2021 09:21:22 +0200 Subject: [PATCH] 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. --- include/haproxy/queue-t.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/haproxy/queue-t.h b/include/haproxy/queue-t.h index 41022852b..4478d6c55 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 */ /*