Re:I've been writing ring buffers wrong all these years
by amag on Wednesday December 14, 2016 @04:48PM
(#13179973)
It all depends on your use case. In my experience, most of the times when dealing with RB:s, it's more important to guarantee that the read index and the write index can be updated lock-free by different threads (e.g. one producer and one consumer) than to have a very specific non-power-of-2 capacity.
[ Parent
| on HN ]
There are no comments on this comment yet.