]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: support creating a ring from a linear area
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Aug 2022 05:50:43 +0000 (07:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Aug 2022 09:18:46 +0000 (11:18 +0200)
commit6df10d872b84121b4d0e1fbd7bf91fd8defb3680
tree55d2e5a10cacbd53e8405f36f9c57d270ed048f9
parent8df098c2b1fb9d73b55c27a4b4dcd47690493d26
MINOR: ring: support creating a ring from a linear area

Instead of allocating two parts, one for the ring struct itself and
one for the storage area, ring_make_from_area() will arrange the two
inside the same memory area, with the storage starting immediately
after the struct. This will allow to store a complete ring state in
shared memory areas for example.
include/haproxy/ring.h
src/ring.c