The TaskDistributor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TaskDistributor(String) |
Creates a new instance of the TaskDistributor with ProcessorCount x2 worker threads.
The task distributor will auto start his worker threads.
| |
TaskDistributor(String, Int32) |
Creates a new instance of the TaskDistributor.
The task distributor will auto start his worker threads.
| |
TaskDistributor(String, Int32, Boolean) |
Creates a new instance of the TaskDistributor.
|
Methods
Name | Description | |
---|---|---|
CheckAccessLimitation | (Overrides DispatcherBase..::..CheckAccessLimitation()()()().) | |
Dispatch(Action) |
Creates a new Task based upon the given action.
(Inherited from DispatcherBase.) | |
Dispatch(Task) |
Dispatches a given Task.
(Inherited from DispatcherBase.) | |
Dispatch<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>)) |
Creates a new Task based upon the given action.
(Inherited from DispatcherBase.) | |
Dispose |
Disposes all TaskDistributor, worker threads, resources and remaining tasks.
(Overrides DispatcherBase..::..Dispose()()()().) | |
ReorderTasks | (Inherited from DispatcherBase.) | |
SpawnAdditionalWorkerThread | ||
Start |
Starts the TaskDistributor if its not currently running.
|
Extension Methods
Name | Description | |
---|---|---|
RunAsync(String, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) | |
RunAsync(String, TaskDistributor, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) | |
RunAsync<(Of <<'(T>)>>)(String, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) | |
RunAsync<(Of <<'(T>)>>)(String, TaskDistributor, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
Fields
Name | Description | |
---|---|---|
AllowAccessLimitationChecks | (Inherited from DispatcherBase.) | |
AllowDynamicGrowth |
True when the TaskDistributor instance can spawn new threads to handle the workload.
| |
dataEvent | (Inherited from DispatcherBase.) | |
taskList | (Inherited from DispatcherBase.) | |
TaskSortingSystem |
Set the task reordering system
(Inherited from DispatcherBase.) |
Properties
Name | Description | |
---|---|---|
Main |
Returns the first created TaskDistributor instance. When no instance has been created an exception will be thrown.
| |
MainNoThrow |
Returns the first created TaskDistributor instance.
| |
TaskCount |
Returns the currently existing task count. Early aborted tasks will count too.
(Inherited from DispatcherBase.) |