|
ManagedThreadPoolQueueUserWorkItem(ParameterizedThreadStart, Object) Method
|
Queues a work item for processing on the managed thread pool
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.260-beta+0f4e919571e6ec7e8e07a8e325416284b7e38fa3
Syntaxpublic static ManagedThread QueueUserWorkItem(
ParameterizedThreadStart callback,
Object state
)
Public Shared Function QueueUserWorkItem (
callback As ParameterizedThreadStart,
state As Object
) As ManagedThread
public:
static ManagedThread^ QueueUserWorkItem(
ParameterizedThreadStart^ callback,
Object^ state
)
static member QueueUserWorkItem :
callback : ParameterizedThreadStart *
state : Object -> ManagedThread GSF.Threading.ManagedThreadPool.QueueUserWorkItem = function(callback, state);
View SourceParameters
- callback ParameterizedThreadStart
- A WaitCallback representing the method to execute.
- state Object
- An object containing data to be used by the method.
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