Click or drag to resize

ManagedThreadPool Class

Defines a managed thread pool
Inheritance Hierarchy
SystemObject
  GSF.ThreadingManagedThreadPool

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static class ManagedThreadPool
View Source

The ManagedThreadPool type exposes the following members.

Methods
 NameDescription
Public methodStatic memberQueueUserWorkItem(ParameterizedThreadStart) Queues a work item for processing on the managed thread pool
Public methodStatic memberQueueUserWorkItem(ThreadStart) Queues a work item for processing on the managed thread pool
Public methodStatic memberQueueUserWorkItem(ContextCallback, ExecutionContext) Queues a work item for processing on the managed thread pool
Public methodStatic memberQueueUserWorkItem(ParameterizedThreadStart, Object) Queues a work item for processing on the managed thread pool
Public methodStatic memberQueueUserWorkItem(ContextCallback, Object, ExecutionContext) Queues a work item for processing on the managed thread pool
Top
Remarks
This class works like the normal thread pool but provides the benefit of automatic tracking of queued threads through the ManagedThreads collection, returns a reference to the queued thread with the ability to dequeue and/or abort, total thread runtime and the ability to run the queued thread in an alternate execution context
See Also