|
PriorityQueueTAdjustPriority Method
|
Adds the given value to the priority of all values in the priority queue.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic void AdjustPriority(
int delta
)
Public Sub AdjustPriority (
delta As Integer
)
public:
void AdjustPriority(
int delta
)
member AdjustPriority :
delta : int -> unit function AdjustPriority(delta);
View SourceParameters
- delta Int32
- The amount by which to adjust priorities.
Remarks
This allows for adjusting the priorities of all items in the heap without
having to fix the heap each time a priority is changed. This can be useful
to increase the priorities of items that have been in the queue for significant
periods of time to prevent starvation. This is an O(n) operation.
See Also