Original link: https://nicksxs.me/2022/09/25/Disruptor-%E7%B3%BB%E5%88%97%E4%B8%89/
It’s been a bit misleading.
gatingSequences is used to identify the operation site of each processer, but it is a bit unclear how to record and update. In fact, the problem is that gatingSequences is a Sequence array. First, let’s see how to add it.
can be seen in
This article is reprinted from: https://nicksxs.me/2022/09/25/Disruptor-%E7%B3%BB%E5%88%97%E4%B8%89/
This site is for inclusion only, and the copyright belongs to the original author.