CommsThreadPool MembersNetworkComms.Net Help
The CommsThreadPool type exposes the following members.
Constructors

  NameDescription
Public methodCommsThreadPool
Create a new NetworkComms.Net thread pool
Back to Top
Methods

  NameDescription
Public methodBeginShutdown
Prevent any additional threads from starting. Returns immediately.
Public methodEndShutdown
Prevent any additional threads from starting and return once all existing workers have completed.
Public methodEnqueueItem
Enqueue a callback to the thread pool.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodToString
Provides a brief string summarisation the state of the thread pool
(Overrides OnlineObject ToString .)
Back to Top
Properties

  NameDescription
Public propertyCurrentNumIdleThreads
The total number of idle threads currently in the thread pool
Public propertyCurrentNumTotalThreads
The total number of threads currently in the thread pool
Public propertyCurrentNumWaitSleepJoinThreadsCache
The most recent count of pool threads which are waiting for IO
Public propertyLastThreadWaitSleepJoinCountCacheUpdate
The dateTime associated with the most recent count of pool threads which are waiting for IO
Public propertyMaxActiveThreadsCount
The maximum number of active threads in the pool. This can be less than MaxTotalThreadsCount, taking account of waiting threads.
Public propertyMaxTotalThreadsCount
The maximum number of threads to create in the pool
Public propertyMinThreadsCount
The minimum number of idle threads to maintain in the pool
Public propertyQueueCount
The total number of items currently waiting to be collected by a thread
Back to Top
See Also