Skip to main content

Crate moirai_utils

Crate moirai_utils 

Source
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 optimization
  • atomic - Atomic operations and counters for lock-free programming
  • queue - Lock-free queues for high-performance data structures
  • memory - Memory utilities for cache prefetching

Re-exports§

pub use atomic::AtomicCounter;
pub use cache::align_to_cache_line;
pub use cache::CacheAligned;
pub use cache::CACHE_LINE_SIZE;
pub use memory::prefetch_read;
pub use memory::prefetch_write;
pub use queue::LockFreeQueue;
pub use simd::has_native_vector_path;
pub use simd::SimdReal;
pub use simd::SimdScalar;

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.
simd
Generic SIMD-aware vector operations.

Structs§

SimdCounter
Performance counter for tracking SIMD optimization usage.

Functions§

global_simd_counter
Get the global SIMD performance counter instance.