Re:I've been writing ring buffers wrong all these years (2016)
by spockz on Thursday December 18, 2025 @05:00PM
(#46319403)
Interesting! Do you know of an example implementation of this?
[ Parent
| on HN ]
Re:I've been writing ring buffers wrong all these years (2016)
by mrcode007 on Friday December 19, 2025 @08:26PM
(#46332908)
Yes. [1] has background, [2] has the implementation (fig 2. pseudocode). Since you understood my comment I trust you can figure out the rest :) itβs a very neat trick.
[1]https://www.microsoft.com/en-us/research/publication/concurr... [2]https://arxiv.org/pdf/1012.1824