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