pub type ConcurrentHeapRB<T> = ConcurrentMutRingBuf<HeapStorage<T>>;
Expand description
A heap-allocated ring buffer usable in concurrent environment.
struct ConcurrentHeapRB<T> { }
Creates a new concurrent heap-allocated buffer with given capacity and zeroed (uninitialised) elements.
§Safety
The buffer must be then initialised using proper ProdIter
methods (*_init
ones).
Creates a new concurrent heap-allocated buffer with given capacity and elements initialised to default
.
Constructs a ConcurrentHeapRB
using the passed vector.
Note that the length of the buffer will be equal to the length of teh vector, and not
to its capacity.