Module spsc

Source
Expand description

Lock-free single-producer single-consumer ring buffer.

Provides a realtime-safe channel for inter-thread communication, suitable for audio thread to I/O thread communication where blocking is unacceptable.

Structsยง

Consumer
Consumer handle for popping items from the ring buffer.
Producer
Producer handle for pushing items into the ring buffer.
SpscRingBuffer
Factory for creating producer/consumer pairs.