The CommsThreadPool type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| CommsThreadPool |
Create a new NetworkComms.Net thread pool
|
Methods
| Name | Description | |
|---|---|---|
| BeginShutdown |
Prevent any additional threads from starting. Returns immediately.
| |
| EndShutdown |
Prevent any additional threads from starting and return once all existing workers have completed.
| |
| EnqueueItem |
Enqueue a callback to the thread pool.
| |
| (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
Serves as a hash function for a particular type. (Inherited from | ||
Gets the (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
| ToString |
Provides a brief string summarisation the state of the thread pool
(Overrides |
Properties
| Name | Description | |
|---|---|---|
| CurrentNumIdleThreads |
The total number of idle threads currently in the thread pool
| |
| CurrentNumTotalThreads |
The total number of threads currently in the thread pool
| |
| CurrentNumWaitSleepJoinThreadsCache |
The most recent count of pool threads which are waiting for IO
| |
| LastThreadWaitSleepJoinCountCacheUpdate |
The dateTime associated with the most recent count of pool threads which are waiting for IO
| |
| MaxActiveThreadsCount |
The maximum number of active threads in the pool. This can be less than MaxTotalThreadsCount, taking account of waiting threads.
| |
| MaxTotalThreadsCount |
The maximum number of threads to create in the pool
| |
| MinThreadsCount |
The minimum number of idle threads to maintain in the pool
| |
| QueueCount |
The total number of items currently waiting to be collected by a thread
|
See Also