Class ThreadPriorityTaskScheduler
Inheritance
System.Object
ThreadPriorityTaskScheduler
Implements
System.IDisposable
Assembly: Eco.Core.dll
Syntax
public sealed class ThreadPriorityTaskScheduler : TaskScheduler, IDisposable
Constructors
ThreadPriorityTaskScheduler(ThreadPriority, Int32, String)
Declaration
public ThreadPriorityTaskScheduler(ThreadPriority threadPriority, int poolSize = 0, string poolName = null)
Parameters
Type |
Name |
Description |
System.Threading.ThreadPriority |
threadPriority |
|
System.Int32 |
poolSize |
|
System.String |
poolName |
|
Fields
BelowNormal
Declaration
public static readonly ThreadPriorityTaskScheduler BelowNormal
Field Value
Lowest
Declaration
public static readonly ThreadPriorityTaskScheduler Lowest
Field Value
Methods
Dispose()
Declaration
GetScheduledTasks()
Declaration
protected override IEnumerable<Task> GetScheduledTasks()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Threading.Tasks.Task> |
|
QueueTask(Task)
Declaration
protected override void QueueTask(Task task)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.Task |
task |
|
TryExecuteTaskInline(Task, Boolean)
Declaration
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.Task |
task |
|
System.Boolean |
taskWasPreviouslyQueued |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IDisposable
Extension Methods