Basic implementation of a circular buffer built for pushing and popping arbitrary amounts of data at once. 更多...
#include <Dsp.h>
Basic implementation of a circular buffer built for pushing and popping arbitrary amounts of data at once.
Designed to be thread safe for SPSC; However, if Push() and Pop() are both trying to access an overlapping area of the buffer, One of the calls will be truncated. Thus, it is advised that you use a high enough capacity that the producer and consumer are never in contention.