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.
This commit is contained in:
Willy Tarreau 2021-06-18 09:21:22 +02:00
parent 5941ef0a6c
commit eea3817a47

View File

@ -39,6 +39,12 @@ struct pendconn {
struct eb32_node node; 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 */ #endif /* _HAPROXY_QUEUE_T_H */
/* /*