Click or drag to resize

PriorityQueueTEnqueue Method

Enqueues an item into the queue.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
public void Enqueue(
	int priority,
	T item
)
View Source

Parameters

priority  Int32
The priority of the item.
item  T
The item to be enqueued.
Remarks
After adding an item to the queue, the heap will need to be fixed, therefore this is an O(log n) operation.
See Also