pub fn ring_buffer<T: Clone + Send>(
subbuffer_len: usize,
subbuffer_count: usize,
) -> Result<(RingBufferSend<T>, RingBufferRecv<T>), Error>Expand description
Create a sender/receiver pair for a single producer single consumer ring buffer.
subbfer_len is the number of items that should be contained in each subbffer, and
subbuffer_count is the number of subbffers that are used to swap data between the
sender and receiver.