QueueUserWorkItem()

ThreadPoolImpl::QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&) method

Adds work item to queue.

bool System::Threading::ThreadPoolImpl::QueueUserWorkItem(WaitCallback callback, const System::SharedPtr<System::Object> &state)

Arguments

ParameterTypeDescription
callbackWaitCallbackCallback function to execute.
stateconst System::SharedPtr<System::Object>&Callback function argument.

Return Value

Always returns true.

See Also