Click or drag to resize

ManagedThreadPoolQueueUserWorkItem(ContextCallback, ExecutionContext) 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.323-beta+aefb8e4393da7a2a0171af4e5d5d8668dbbc75f1
Syntax
public static ManagedThread QueueUserWorkItem(
	ContextCallback callback,
	ExecutionContext ctx
)
View Source

Parameters

callback  ContextCallback
A WaitCallback representing the method to execute.
ctx  ExecutionContext
Alternate execution context in which to run the thread.

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