C# Class Fibrous.Queues.BusyWaitQueue

Busy waits on lock to execute. Can improve performance in certain situations.
Inheritance: IQueue
ファイルを表示 Open project: chrisa23/Fibrous

Public Methods

Method Description
BusyWaitQueue ( int spinsBeforeTimeCheck, int msBeforeBlockingWait ) : System

BusyWaitQueue with custom executor.

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

Enqueue action.

Private Methods

Method Description
TryBlockingWait ( Stopwatch stopwatch, int &spins ) : bool
TryDequeue ( ) : List

Method Details

BusyWaitQueue() public method

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

Dispose() public method

public Dispose ( ) : void
return void

Drain() public method

public Drain ( ) : List
return List

Enqueue() public method

Enqueue action.
public Enqueue ( System.Action action ) : void
action System.Action
return void