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