Méthode | Description | |
---|---|---|
AddThread ( ) : void |
Notifies the thread manager that it should use another thread.
|
|
AddThread ( Action |
Notifies the thread manager that it should use another thread.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
EnqueueTask ( Action |
Enqueues a task to the thread manager. This should be safe to call from multiple threads and from other tasks.
|
|
ForLoop ( int startIndex, int endIndex, Action |
Loops from the starting index (inclusive) to the ending index (exclusive), calling the loopBody at each iteration. The forLoop function will not return until all iterations are complete. This is meant to be used in a 'fork-join' model; only a single thread should be running a forLoop at any time.
|
|
RemoveThread ( ) : void |
Notifies the thread manager that it should decrease the number of threads used.
|
|
ThreadManagerTPL ( ) : System |
Constructs the TPL thread manager.
|
|
WaitForTaskCompletion ( ) : void |
Waits until all tasks enqueued using enqueueTask are complete.
|
public AddThread ( Action | ||
initialization | Action | Function to use to initialize the thread. |
initializationInformation | object | Information to provide to the initializer. |
Résultat | void |
public EnqueueTask ( Action | ||
taskBody | Action | Method to run. |
taskInformation | object | Data to give to the task. |
Résultat | void |
public ForLoop ( int startIndex, int endIndex, Action |
||
startIndex | int | Inclusive starting index. |
endIndex | int | Exclusive ending index. |
loopBody | Action |
Function that handles an individual iteration of the loop. |
Résultat | void |