|
ManagedThreadPoolQueueUserWorkItem(ContextCallback, ExecutionContext) Method
|
Queues a work item for processing on the managed thread pool
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+ff392465a0262ee2737937d4127fc3c2f08c6dcd
Syntaxpublic static ManagedThread QueueUserWorkItem(
ContextCallback callback,
ExecutionContext ctx
)
Public Shared Function QueueUserWorkItem (
callback As ContextCallback,
ctx As ExecutionContext
) As ManagedThread
public:
static ManagedThread^ QueueUserWorkItem(
ContextCallback^ callback,
ExecutionContext^ ctx
)
static member QueueUserWorkItem :
callback : ContextCallback *
ctx : ExecutionContext -> ManagedThread
GSF.Threading.ManagedThreadPool.QueueUserWorkItem = function(callback, ctx);
View SourceParameters
- callback ContextCallback
- A WaitCallback representing the method to execute.
- ctx ExecutionContext
- Alternate execution context in which to run the thread.
Return Value
ManagedThreadReference 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