/// <summary> /// Add the specified gating sequences to this instance of the Disruptor. They will /// safely and atomically added to the list of gating sequences. /// </summary> /// <param name="gatingSequences">The sequences to add.</param> public void AddGatingSequences(params ISequence[] gatingSequences) { SequenceGroups.AddSequences(ref _gatingSequences, this, gatingSequences); }
/// <summary> /// Adds a sequence to the sequence group after threads have started to publish to /// the Disruptor.It will set the sequences to cursor value of the ringBuffer /// just after adding them. This should prevent any nasty rewind/wrapping effects. /// </summary> /// <param name="cursored">The data structure that the owner of this sequence group will be pulling it's events from</param> /// <param name="sequence">The sequence to add</param> public void AddWhileRunning(ICursored cursored, Sequence sequence) { SequenceGroups.AddSequences(ref _sequences, cursored, sequence); }