smarty-prototypes/go-disruptor

ringBuffer visibility discuss

Opened this issue · 0 comments

I would like to know how to guarantee that writing and reading of ringBuffer is thread safe. Because I found that the writing and reading of the ringBuffer are not locked, and the data that may be read may not be written into the ringBuffer. Because of the MESI protocol, it does not guarantee good visibility.
image