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