DomainThreadPool Class |
This implementation assures a specified number of threads and allow assigning specific tasks to specific threads.
When a specific number of tasks has to synchronize at certain points, the same specific number of threads is required running at the same time.
If one task has to follow another in a number of parallel "pipelines", it is required to assign specific tasks to specific threads.
Namespace: DHI.Mike1D.Generic
The DomainThreadPool type exposes the following members.
Name | Description | |
---|---|---|
DomainThreadPool |
Create a threadpool with the specified number of threads
|
Name | Description | |
---|---|---|
AssingTask |
Assign task to thread, activate thread if it is waiting
You need to call Start before any tasks will be processed. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Start |
Start all threads. Can only be called once.
| |
Stop |
Stop all threads. Threads cannot be started again.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |