moirai-utils 0.7.0

Utility functions and data structures for Moirai concurrency library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Lock-free queues for high-performance data structures.
//!
//! This module provides an efficient bounded multi-producer multi-consumer
//! queue built on per-slot sequence numbers (the Vyukov algorithm). It is the
//! workspace's only implementation of that algorithm: the scheduler injector,
//! both executors' run queues, and `moirai-core`'s bounded MPMC channel all run
//! on it.

#![cfg_attr(test, allow(clippy::unwrap_used, reason = "test scope"))]

mod ring;
#[cfg(test)]
mod tests;

pub use self::ring::LockFreeQueue;