pub type ConcurrentStackRB<T, const N: usize> = ConcurrentMutRingBuf<StackStorage<T, N>>;Available on non-crate feature
vmem only.Expand description
A stack-allocated ring buffer usable in concurrent environment.
Aliased Type§
pub struct ConcurrentStackRB<T, const N: usize> { /* private fields */ }Implementations§
Source§impl<T, const N: usize> ConcurrentStackRB<T, N>
impl<T, const N: usize> ConcurrentStackRB<T, N>
Sourcepub unsafe fn new_zeroed() -> Self
pub unsafe fn new_zeroed() -> Self
Creates a new ConcurrentStackRB with given capacity and zeroed (uninitialised) elements.
§Safety
The buffer must be then initialised using proper ProdIter methods (*_init ones).