C# Class Amib.Threading.Internal.PriorityQueue

PriorityQueue class This class is not thread safe because we use external lock
Inheritance: IEnumerable
Mostra file Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clear all the work items

Dequeue ( ) : IHasWorkItemPriority

Dequeque a work item.

Enqueue ( IHasWorkItemPriority workItem ) : void

Enqueue a work item.

GetEnumerator ( ) : IEnumerator

Returns an enumerator to iterate over the work items

PriorityQueue ( ) : System

Private Methods

Method Description
GetNextNonEmptyQueue ( int queueIndex ) : int

Find the next non empty queue starting at queue queueIndex+1

Method Details

Clear() public method

Clear all the work items
public Clear ( ) : void
return void

Dequeue() public method

Dequeque a work item.
public Dequeue ( ) : IHasWorkItemPriority
return IHasWorkItemPriority

Enqueue() public method

Enqueue a work item.
public Enqueue ( IHasWorkItemPriority workItem ) : void
workItem IHasWorkItemPriority A work item
return void

GetEnumerator() public method

Returns an enumerator to iterate over the work items
public GetEnumerator ( ) : IEnumerator
return IEnumerator

PriorityQueue() public method

public PriorityQueue ( ) : System
return System