Ring buffers
I’d always been writing ring buffers “wrong”, and there was a better way. - Juho Snellman’s Weblog / HN
Best is to use Array + two unmasked indices - Andrew Morton
-
cbuffer - mmap magic trick to make the caller’s life easier.
-
you don’t actually need a spinlock if you’re using a ringbuffer
Written on April 5, 2021, Last update on June 26, 2021
c++
buffer