|
ManagedThreadPoolQueueUserWorkItem(ThreadStart) Method
|
Queues a work item for processing on the managed thread pool
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntaxpublic static ManagedThread QueueUserWorkItem(
ThreadStart callback
)
Public Shared Function QueueUserWorkItem (
callback As ThreadStart
) As ManagedThread
public:
static ManagedThread^ QueueUserWorkItem(
ThreadStart^ callback
)
static member QueueUserWorkItem :
callback : ThreadStart -> ManagedThread
GSF.Threading.ManagedThreadPool.QueueUserWorkItem = function(callback);
View SourceParameters
- callback ThreadStart
- A WaitCallback representing the method to execute.
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