[][src]Module magnetic::spmc

Single-producer multiple-consumer queue

The SPMC queue allows for pushing from one thread and popping from another. The producer end of the queue may be accessed by a single thread while the consumer end may be accessed by multiple threads. In other words, SPMCProducer is Send and !Sync while SPMCConsumer is Send and Sync.

Structs

SPMCConsumer

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

SPMCProducer

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

Functions

spmc_queue

Creates a new SPMC queue