mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
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:
parent
5941ef0a6c
commit
eea3817a47
@ -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 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user