Expand description
Utility functions and data structures for Moirai concurrency library.
This crate provides modular utility components organized by domain:
cache- Cache alignment utilities for performance optimizationatomic- Atomic operations and counters for lock-free programmingqueue- Lock-free queues for high-performance data structuresresult_cell- One-shot completion cell shared by the task and async handlesmemory- Memory utilities for cache prefetching
Re-exports§
pub use atomic::AtomicCounter;pub use cache::CACHE_LINE_SIZE;pub use cache::CacheAligned;pub use cache::CachePad;pub use cache::DESTRUCTIVE_INTERFERENCE_SIZE;pub use cache::align_to_cache_line;pub use memory::prefetch_read;pub use memory::prefetch_write;pub use queue::LockFreeQueue;pub use result_cell::ResultCell;pub use result_cell::Waiter;pub use simd::SimdReal;pub use simd::SimdScalar;pub use simd::has_native_vector_path;
Modules§
- atomic
- Atomic operations and counters for lock-free programming.
- cache
- Cache alignment utilities for performance optimization.
- memory
- Memory utilities for cache optimization and prefetching.
- queue
- Lock-free queues for high-performance data structures.
- result_
cell - One-shot completion cell: one result, one waiter, one hand-off.
- simd
- Generic SIMD-aware vector operations.
Structs§
- Simd
Counter - Performance counter for tracking SIMD optimization usage.
Functions§
- global_
simd_ counter - Get the global SIMD performance counter instance.