Skip to main content

Module spsc_queue

Module spsc_queue 

Source

Structs§

MessageHeader
Message header. size is the cross-thread control word (AtomicU32).
SpscVarQueue
Single-producer single-consumer variable-length lock-free ring queue.

Constants§

BLOCK_COUNT
Number of 8-byte blocks in the ring buffer.
BUFFER_SIZE
See BUFFER_SIZE for documentation.
HEADER_SIZE
Message header size (8 bytes).
PAYLOAD_ARGS_OFFSET
Byte offset where encoded arguments begin within the payload.
PAYLOAD_HEADER_SIZE
Fixed overhead per message (info pointer + timestamp) before encoded arguments.
PAYLOAD_INFO_OFFSET
Byte offset of the *const StaticInfo pointer within the payload.
PAYLOAD_TIMESTAMP_OFFSET
Byte offset of the i64 timestamp within the payload.