Click or drag to resize

ManagedThreadPoolQueueUserWorkItem(ParameterizedThreadStart, Object) Method

Queues a work item for processing on the managed thread pool

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.304-beta+e40582bbb64c28edadb696048770577c4e325275
Syntax
public static ManagedThread QueueUserWorkItem(
	ParameterizedThreadStart callback,
	Object state
)
View Source

Parameters

callback  ParameterizedThreadStart
A WaitCallback representing the method to execute.
state  Object
An object containing data to be used by the method.

Return Value

ManagedThread
Reference to queued thread
Remarks
This differs from the normal thread pool QueueUserWorkItem function in that it does not return a success value determing if item was queued, but rather a reference to to the managed thread that was actually placed on the queue.
See Also