disruptor icon indicating copy to clipboard operation
disruptor copied to clipboard

please guide me,thanks.

Open dpf371 opened this issue 1 year ago • 1 comments

https://github.com/LMAX-Exchange/disruptor/blob/109e2881fa421ceac31c7aabc3b96bfd2a94587d/src/main/java/com/lmax/disruptor/SingleProducerSequencer.java#L102

What case will run this code “cachedGatingSequence > current” ? Could Consumer's sequence be more than Producer's sequence ? But this case can be possible ?

dpf371 avatar Feb 26 '23 15:02 dpf371

cachedGatingSequence is like a checkpoint (caching the minimum sequence number of the ringBuffer).

soulmz avatar May 09 '23 01:05 soulmz