Skip to main content

Crate ipc_ring48

Crate ipc_ring48 

Source
Expand description

ipc-ring48 is a bounded 48-byte POSIX shared-memory SPSC queue.

The queue has one producer, one consumer, fixed 48-byte slots, and a lock-free hot path. push returns PushError::Full when the queue is full. pop returns None when the queue is empty.

Structs§

Consumer
Queue consumer.
CounterLine
Producer
Queue producer.
QueueStats
Snapshot of queue state.
SharedHeader
Slot48

Enums§

PushError
Error returned by Producer::push when the queue is full.

Constants§

PAYLOAD_SIZE
Fixed payload size carried by every queue slot.
SHM_NAME
POSIX shared-memory object name used by ipc-ring48.

Functions§

stats
Open the queue and return statistics.
unlink
Remove the POSIX shared-memory object.