C# Class Fibrous.Queues.BusyWaitQueue

Busy waits on lock to execute. Can improve performance in certain situations.
Inheritance: IQueue
Afficher le fichier Open project: chrisa23/Fibrous

Méthodes publiques

Méthode Description
BusyWaitQueue ( int spinsBeforeTimeCheck, int msBeforeBlockingWait ) : System

BusyWaitQueue with custom executor.

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

Enqueue action.

Private Methods

Méthode Description
TryBlockingWait ( Stopwatch stopwatch, int &spins ) : bool
TryDequeue ( ) : List

Method Details

BusyWaitQueue() public méthode

BusyWaitQueue with custom executor.
public BusyWaitQueue ( int spinsBeforeTimeCheck, int msBeforeBlockingWait ) : System
spinsBeforeTimeCheck int
msBeforeBlockingWait int
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Drain() public méthode

public Drain ( ) : List
Résultat List

Enqueue() public méthode

Enqueue action.
public Enqueue ( System.Action action ) : void
action System.Action
Résultat void