Table of Contents

Class ExecutionPriorityExtensions

Namespace
DotCompute.Abstractions.Execution
Assembly
DotCompute.Abstractions.dll

Extension methods for ExecutionPriority.

public static class ExecutionPriorityExtensions
Inheritance
ExecutionPriorityExtensions
Inherited Members

Methods

GetDescription(ExecutionPriority)

Gets a human-readable description of the execution priority.

public static string GetDescription(this ExecutionPriority priority)

Parameters

priority ExecutionPriority

The execution priority.

Returns

string

A descriptive string.

GetWeight(ExecutionPriority)

Gets the numeric weight for priority scheduling. Higher values indicate higher priority.

public static int GetWeight(this ExecutionPriority priority)

Parameters

priority ExecutionPriority

The execution priority.

Returns

int

The numeric weight (0-100).

IsHigherThan(ExecutionPriority, ExecutionPriority)

Determines if this priority is higher than another priority.

public static bool IsHigherThan(this ExecutionPriority priority, ExecutionPriority other)

Parameters

priority ExecutionPriority

The current priority.

other ExecutionPriority

The other priority to compare against.

Returns

bool

True if this priority is higher than the other.

IsUrgent(ExecutionPriority)

Determines if this priority is real-time or critical.

public static bool IsUrgent(this ExecutionPriority priority)

Parameters

priority ExecutionPriority

The execution priority.

Returns

bool

True if the priority is real-time or critical.