Property | Type | Description | |
---|---|---|---|
priorityList | IScheduledTask>.SortedList |
Method | Description | |
---|---|---|
AddTask ( IScheduledTask task ) : void |
Adds a task to the priority queue. As no priority value has been given, the scheduler will use the delegate in TaskPriorityAlgorithm to determine a priority for the task. Failure to set TaskPriorityAlgorithm ahead of time will throw an exception.
|
|
AddTask ( |
Adds a task to the scheduler with the specified priority.
|
|
ClearTasks ( ) : void |
Clears the scheduler of all tasks.
|
|
PrioritizedThreadPoolScheduler ( ) : System |
Constructor.
|
|
Process ( ) : void |
Dispatches a "go" message to all subscribed processes.
|
|
RemoveTask ( IScheduledTask task ) : System.Boolean |
Remove a task from the scheduler. This is a fail-safe function; it will not throw an exception if the task is not in the scheduler. Note that this function only removes the first occasion of a task; if you have accidentally registered the same task multiple times, it only removes one.
|
|
ReorderTasks ( ) : void |
Feeds all currently enqueued tasks through the designated TaskPriorityAlgorithm to reorder them. This is a computationally slow function and should be called with caution.
|
Method | Description | |
---|---|---|
RunTask ( Object data ) : void |
public AddTask ( IScheduledTask task ) : void | ||
task | IScheduledTask | The task to add to the scheduler. |
return | void |
public AddTask ( |
||
priority | The current task's priority for scheduling. | |
task | IScheduledTask | The task to be queued. |
return | void |
public PrioritizedThreadPoolScheduler ( ) : System | ||
return | System |
public RemoveTask ( IScheduledTask task ) : System.Boolean | ||
task | IScheduledTask | The task to remove. |
return | System.Boolean |