C# Class Disruptor.SpinWaitWaitStrategy

Spin strategy that uses a SpinWait for IEventProcessors waiting on a barrier.

This strategy is a good compromise between performance and CPU resource. Latency spikes can occur after quiet periods.

Inheritance: IWaitStrategy
Afficher le fichier Open project: disruptor-net/Disruptor-net

Méthodes publiques

Méthode Description
SignalAllWhenBlocking ( ) : void

IWaitStrategy.SignalAllWhenBlocking

WaitFor ( long sequence, Sequence cursor, ISequence dependentSequence, ISequenceBarrier barrier ) : long

IWaitStrategy.WaitFor

Method Details

SignalAllWhenBlocking() public méthode

IWaitStrategy.SignalAllWhenBlocking
public SignalAllWhenBlocking ( ) : void
Résultat void

WaitFor() public méthode

IWaitStrategy.WaitFor
public WaitFor ( long sequence, Sequence cursor, ISequence dependentSequence, ISequenceBarrier barrier ) : long
sequence long
cursor Sequence
dependentSequence ISequence
barrier ISequenceBarrier
Résultat long