AddSequences() public static method

public static AddSequences ( ISequence &sequences, ICursored cursor ) : void
sequences ISequence
cursor ICursored
return void
コード例 #1
0
ファイル: Sequencer.cs プロジェクト: zhaobinbin0914/MyShare
 /// <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);
 }
コード例 #2
0
 /// <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);
 }