Skip to main content

moirai_utils/queue/
mod.rs

1//! Lock-free queues for high-performance data structures.
2//!
3//! This module provides an efficient bounded multi-producer multi-consumer
4//! queue built on per-slot sequence numbers (the Vyukov algorithm). It is the
5//! workspace's only implementation of that algorithm: the scheduler injector,
6//! both executors' run queues, and `moirai-core`'s bounded MPMC channel all run
7//! on it.
8
9#![cfg_attr(test, allow(clippy::unwrap_used, reason = "test scope"))]
10
11mod ring;
12#[cfg(test)]
13mod tests;
14
15pub use self::ring::LockFreeQueue;