Crate maniac_runtime

Crate maniac_runtime 

Source
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§

future
generator
generator
runtime
Executor module providing a cooperative async executor.
sync
utils

Macros§

done
it’s a special return instruction that yield nothing but only terminate the generator safely

Enums§

PopError
Error occurring when popping from a queue is unsuccessful.
PushError
Error occurring when pushing into a queue is unsuccessful.