go-lock-free-ring-buffer icon indicating copy to clipboard operation
go-lock-free-ring-buffer copied to clipboard

Lock-free ring buffer by golang

Results 1 go-lock-free-ring-buffer issues
Sort by recently updated
recently updated
newest added

你好,这种方式区控制ring slice 元素容量,无法保证添加和读取数据的原子性。 1.如果当前只能容纳一个元素,此时2个goroutine执行Offer操作,isFull会存在2个goroutine都会条件通过,这种情况就会存在问题。