C# 클래스 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.
상속: IWaitStrategy
파일 보기 프로젝트 열기: disruptor-net/Disruptor-net 1 사용 예제들

공개 메소드들

메소드 설명
SignalAllWhenBlocking ( ) : void

IWaitStrategy.SignalAllWhenBlocking

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

IWaitStrategy.WaitFor

비공개 메소드들

메소드 설명
ApplyWaitMethod ( ISequenceBarrier barrier, int counter ) : int

메소드 상세

SignalAllWhenBlocking() 공개 메소드

IWaitStrategy.SignalAllWhenBlocking
public SignalAllWhenBlocking ( ) : void
리턴 void

SleepingWaitStrategy() 공개 메소드

public SleepingWaitStrategy ( int retries = _defaultRetries ) : System.Threading
retries int
리턴 System.Threading

WaitFor() 공개 메소드

IWaitStrategy.WaitFor
public WaitFor ( long sequence, Sequence cursor, ISequence dependentSequence, ISequenceBarrier barrier ) : long
sequence long
cursor Sequence
dependentSequence ISequence
barrier ISequenceBarrier
리턴 long