Property | Type | Description | |
---|---|---|---|
CreateThreads | void | ||
RemoveThreadAffinity | void | ||
SetThreadAffinity | void | ||
ThreadStartWithAffinity | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
RoundRobinThreadAffinedTaskScheduler ( int numberOfThreads ) : System |
Create a new RoundRobinThreadAffinedTaskScheduler with a provided number of background threads. Threads are pined to a logical core using a round robin algorithm.
|
Method | Description | |
---|---|---|
GetScheduledTasks ( ) : IEnumerable |
Generates an enumerable of T:System.Threading.Tasks.Task instances currently queued to the scheduler waiting to be executed.
|
|
QueueTask ( Task task ) : void |
Queues a T:System.Threading.Tasks.Task to the scheduler.
|
|
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool |
Determines whether the provided T:System.Threading.Tasks.Task can be executed synchronously in this call, and if it can, executes it.
|
Method | Description | |
---|---|---|
CreateThreads ( int numberOfThreads, int processorIndexes ) : void | ||
RemoveThreadAffinity ( ) : void | ||
SetThreadAffinity ( int processorIndex ) : void | ||
ThreadStartWithAffinity ( int threadIndex, int processorIndexes ) : void |
protected GetScheduledTasks ( ) : IEnumerable |
||
return | IEnumerable |
protected QueueTask ( Task task ) : void | ||
task | Task | The |
return | void |
public RoundRobinThreadAffinedTaskScheduler ( int numberOfThreads ) : System | ||
numberOfThreads | int | Total number of threads in the pool. |
return | System |
protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool | ||
task | Task | The |
taskWasPreviouslyQueued | bool | A Boolean denoting whether or not task has previously been queued. If this parameter is True, then the task may have been previously queued (scheduled); if False, then the task is known not to have been queued, and this call is being made in order to execute the task inline without queuing it. |
return | bool |