Expand description
§MPMC Queue Wrapper
High-performance multi-producer multi-consumer queue implementation using the moodycamel C++ library through BOP’s C API.
This module provides safe Rust wrappers around the high-performance moodycamel concurrent queue, offering both non-blocking and blocking variants.
§Features
- Lock-free: Non-blocking operations for maximum performance
- Thread-safe: Multiple producers and consumers can operate concurrently
- Token-based optimization: Producer/consumer tokens for better performance
- Bulk operations: Efficient batch enqueue/dequeue operations
- Blocking variant: Optional blocking operations with timeout support
- Memory efficient: Zero-copy operations where possible
Re-exports§
pub use crate::utils::*;
Modules§
Macros§
- done
- it’s a special return instruction that yield nothing but only terminate the generator safely