codeworse·há 7 meses·discussI guess, such buffer could be enriched by allowing to subscribe for updates(something like message channels)
codeworse·há 7 meses·discussAs far as I know, the last approach is the only way to implement efficient lock-free ring-buffer