low_latency_data_structures/spsc/mod.rs
1//! Single-producer, single-consumer bounded FIFO queue.
2//!
3//! Wait-free on both sides. Bounded with a compile-time power-of-two
4//! `CAPACITY`. See [`new`] for the heap-backed variant and
5//! [`new_hugepage_backed`] for the 2 MiB hugepage-backed variant (useful
6//! when the slot buffer is large enough to thrash the dTLB).
7
8mod consumer;
9mod producer;
10mod queue;
11
12pub use consumer::Consumer;
13pub use producer::Producer;
14pub use queue::{new, new_hugepage_backed};