Example #1
0
 public void Dispose()
 {
     if (_ringBuffer != null)
     {
         _ringBuffer.Publish(_sequence);
     }
 }
Example #2
0
 public void Dispose()
 {
     if (_ringBuffer != null)
     {
         _ringBuffer.Publish(_startSequence, _endSequence);
     }
 }
Example #3
0
 private void TranslateAndPublish(Func <T, long, T> translator, long sequence)
 {
     try
     {
         translator(_ringBuffer[sequence], sequence);
     }
     finally
     {
         _ringBuffer.Publish(sequence);
     }
 }
Example #4
0
 public void Dispose() => _ringBuffer.Publish(_startSequence, _endSequence);
Example #5
0
 public void Dispose() => _ringBuffer.Publish(_sequence);