Méthode | Description | |
---|---|---|
ActiveThreadScheduler ( ) : System |
Initializes a new instance of the ActiveThreadScheduler class.
|
|
ActiveThreadScheduler ( Thread thread ) : System |
Initializes a new instance of the ActiveThreadScheduler class.
|
|
Complete ( ) : void |
Signal to this scheduler that no more tasks are expected to arrive on this scheduler
|
|
ExecuteTasks ( ) : void |
Start execution of tasks Scheduled to this scheduler.
|
Méthode | Description | |
---|---|---|
GetScheduledTasks ( ) : IEnumerable |
For debugger support only, 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.
|
Méthode | Description | |
---|---|---|
TryTake ( Task &task ) : bool |
Tries to take the first task from the set. This operation will block until an task has become available, or no more additions are expected.
|
public ActiveThreadScheduler ( Thread thread ) : System | ||
thread | Thread | The thread. |
Résultat | System |
protected GetScheduledTasks ( ) : IEnumerable |
||
Résultat | IEnumerable |
protected QueueTask ( Task task ) : void | ||
task | Task | The |
Résultat | void |
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. /// |
Résultat | bool |