disruptor
disruptor copied to clipboard
please guide me,thanks.
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 ?
cachedGatingSequence is like a checkpoint (caching the minimum sequence number of the ringBuffer).