Module lockfree::channel

source ·
Expand description

Collection of lock-free FIFO channels. These channels are fully asynchronous and their receivers do not provide any sort of wait-for-message operation. It would be blocking otherwise, thus not lock-free. If you need such a mechanism, consider using this channel with a Condvar or using things like thread::park (not lock-free).

Modules

A lock-free Multi-Producer-Multi-Consumer (MPMC) FIFO channel.
A lock-free Multi-Producer-Single-Consumer (MPSC) FIFO channel.
A lock-free Single-Producer-Multi-Consumer (SPMC) FIFO channel.
A lock-free Single-Producer-Single-Consumer (SPSC) FIFO channel.

Structs

The error of Sender::send operation. Occurs if all receivers were disconnected.

Enums

The error of Receiver::recv operation.