C# Class Disruptor.SleepingWaitStrategy

Sleeping strategy that uses a SpinWait while the IEventProcessors are 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 Class Usage Examples

Méthodes publiques

Méthode Description
SignalAllWhenBlocking ( ) : void

IWaitStrategy.SignalAllWhenBlocking

SleepingWaitStrategy ( int retries = _defaultRetries ) : System.Threading
WaitFor ( long sequence, Sequence cursor, ISequence dependentSequence, ISequenceBarrier barrier ) : long

IWaitStrategy.WaitFor

Private Methods

Méthode Description
ApplyWaitMethod ( ISequenceBarrier barrier, int counter ) : int

Method Details

SignalAllWhenBlocking() public méthode

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

SleepingWaitStrategy() public méthode

public SleepingWaitStrategy ( int retries = _defaultRetries ) : System.Threading
retries int
Résultat System.Threading

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