[src]

Module std::sync::spsc_queue

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.

Queue

The single-producer single-consumer queue. This structure is not cloneable, but it can be safely shared in an UnsafeArc if it is guaranteed that there is only one popper and one pusher touching the queue at any one point in time.