Module mpmc_ringbuf::core

source ·
Expand description

The implementation of mpmc-ringbuf.

fixed mode(default): buffer block is fixed, can set it with fn set_fixed()

dynamic mode: buffer block is fixed, can set it with fn set_dynamic()

Structs

main struct for controlling buffer blocks Users should crate a new buffer block with fn add_producer, and explicitly delete the buffer blocks with fn delete_consumer If users want to add a producer and produce some data, make sure you call fn add_producer ahead, otherwise there are none data block for storing the data.
for data reader
for data writer