Module spsc

Module spsc 

Source
Expand description

This module provides implementations of single-producer single-consumer queues.

It contains two implementations:

Structs§

CachePaddedSPSCConsumer
The consumer of the SPSCBoundedQueue.
CachePaddedSPSCProducer
The producer of the SPSCBoundedQueue.
CachePaddedSPSCUnboundedConsumer
The consumer of the [SPSCUnboundedQueue].
CachePaddedSPSCUnboundedProducer
The producer of the [SPSCUnboundedQueue].
SPSCBoundedQueue
The single-producer, single-consumer ring-based const bounded queue.
SPSCConsumer
The consumer of the SPSCBoundedQueue.
SPSCProducer
The producer of the SPSCBoundedQueue.
SPSCUnboundedConsumer
The consumer of the [SPSCUnboundedQueue].
SPSCUnboundedProducer
The producer of the [SPSCUnboundedQueue].

Functions§

new_bounded
Creates a new single-producer, single-consumer queue with the given capacity. Returns producer and consumer.
new_cache_padded_bounded
Creates a new single-producer, single-consumer queue with the given capacity. Returns producer and consumer.
new_cache_padded_unbounded
Calls new_cache_padded_unbounded_with_sync_cell with NaiveRWLock.
new_cache_padded_unbounded_with_sync_cell
Creates a new single-producer, single-consumer unbounded queue. Returns producer and consumer.
new_unbounded
Calls new_unbounded_with_sync_cell with NaiveRWLock.
new_unbounded_with_sync_cell
Creates a new single-producer, single-consumer unbounded queue. Returns producer and consumer.