Module storm::sync

source · []
Expand description

Synchronization utilities.

Structs

A handle to the queue which allows consuming values from the buffer

A handle to the queue which allows adding values onto the buffer

Simple Mutex + Condvar wait notify primitive. Can be used for waiting without spinning. This should be wrapped as an Arc and cloned.

Functions

Creates a new SPSC Queue, returning a Producer and Consumer handle