System::Threading::ThreadPoolImpl::QueueUserWorkItem method

ThreadPoolImpl::QueueUserWorkItem method

Adds work item to queue.

bool System::Threading::ThreadPoolImpl::QueueUserWorkItem(WaitCallback callback, const System::SharedPtr<System::Object> &state)
ParameterTypeDescription
callbackWaitCallbackCallback function to execute.
stateconst System::SharedPtr<System::Object>&Callback function argument.

ReturnValue

Always returns true.

See Also