Module atomic

Module atomic 

Source
Expand description

Atomic type ring buffer with specialized trait

为原子类型专门设计的环形缓冲区

This module provides ring buffer implementation optimized for atomic types like AtomicU64. Unlike generic ring buffers, atomic ring buffers don’t move values but operate through atomic load/store operations.

本模块提供针对原子类型(如 AtomicU64)优化的环形缓冲区实现。 与通用环形缓冲区不同,原子环形缓冲区不移动值,而是通过原子 load/store 操作进行读写。

Structs§

AtomicIter
Iterator over atomic ring buffer elements
AtomicRingBuf
Ring buffer specialized for atomic types
PushMarker
Marker struct for compile-time dispatch

Traits§

AtomicElement
Trait for types that support atomic operations
AtomicNumeric
Trait for atomic numeric operations on ring buffer elements
PushDispatch
Internal trait to dispatch push behavior based on OVERWRITE