Module std::sync::spsc_queueExperimental
[-]
[+]
[src]
A single-producer single-consumer concurrent queue
This module contains the implementation of an SPSC queue which can be used concurrently between two tasks. This data structure is safe to use and enforces the semantics that there is one pusher and one popper.
Structs
| Consumer | A safe abstraction for the consumer in a single-producer single-consumer queue. |
| Producer | A safe abstraction for the producer in a single-producer single-consumer queue. |
| Queue | The single-producer single-consumer queue. This structure is not cloneable, but it can be safely shared in an Arc if it is guaranteed that there is only one popper and one pusher touching the queue at any one point in time. |
Functions
| queue | Creates a new queue with a consumer-producer pair. |