Crate scbuf

source ·
Expand description

scbuf

scbuf (sync circular buffer) is a Send and Sync, lock-free circular buffer implementation.

In the single-producer, single-consumer scenario, it relies solely on atomics for synchronization. See new_scbuf for multiple-producer/consumer usage.

Structs

Functions

  • Creates a new circular buffer with the given capacity and returns one consumer and one producer endpoint.