C# 클래스 Fibrous.Queues.BusyWaitQueue

Busy waits on lock to execute. Can improve performance in certain situations.
상속: IQueue
파일 보기 프로젝트 열기: chrisa23/Fibrous

공개 메소드들

메소드 설명
BusyWaitQueue ( int spinsBeforeTimeCheck, int msBeforeBlockingWait ) : System

BusyWaitQueue with custom executor.

Dispose ( ) : void
Drain ( ) : List
Enqueue ( System.Action action ) : void

Enqueue action.

비공개 메소드들

메소드 설명
TryBlockingWait ( Stopwatch stopwatch, int &spins ) : bool
TryDequeue ( ) : List

메소드 상세

BusyWaitQueue() 공개 메소드

BusyWaitQueue with custom executor.
public BusyWaitQueue ( int spinsBeforeTimeCheck, int msBeforeBlockingWait ) : System
spinsBeforeTimeCheck int
msBeforeBlockingWait int
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Drain() 공개 메소드

public Drain ( ) : List
리턴 List

Enqueue() 공개 메소드

Enqueue action.
public Enqueue ( System.Action action ) : void
action System.Action
리턴 void