MEDIUM: ring: lock the tail's readers counters before proceeding with the changes
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Feb 2024 08:20:54 +0000 (09:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit73b2436fe65c1245440d685e92a6f1c5103a7704
tree1dd13e468981631559102a112fd2e902cefd776a
parentd336d71cbb211f91e750c0fcc4dc21ed9bbf8a20
MEDIUM: ring: lock the tail's readers counters before proceeding with the changes

The goal here is to start to protect the writing area inside the area
itself so that we'll later be able to release the ring's lock. We're not
there yet, but at least the tail is marked as protected for as long as the
message is not fully written.
src/ring.c