Here's a high level description in TLA+:
https://github.com/nicholassm/disruptor-rs/blob/main/verific...
(Disclaimer: I wrote it.)
There's also a spec for a Multi Producer Multi Consumer (MPMC) Disrupter.
87 karma · joined April 20, 2024
(Disclaimer: I wrote it.)
There's also a spec for a Multi Producer Multi Consumer (MPMC) Disrupter.
(Disclaimer: I wrote it.)
The Rust implementation even needs to use a few unsafe blocks (to work with UnsafeCells internally) but is mostly safe code. Other than that you can achieve the same in C++. But I think the real benefit is that you can write the rest of your code in safe Rust.