[][src]Module magnetic::spsc

Single-producer single-consumer queue

The SPSC queue allows for pushing from one thread and popping from another. Each end of the queue can only be owned and accessed from a single thread. In other words, both the SPSCProducer and SPSCConsumer are Send and !Sync.

Structs

SPSCConsumer

Consumer end of the queue. Implements the trait Consumer<T>.

SPSCProducer

Producer end of the queue. Implements the trait Producer<T>.

Functions

spsc_queue

Creates a new SPSC queue