System::Threading::ThreadPool::QueueUserWorkItem method

ThreadPool::QueueUserWorkItem(WaitCallback) method

Puts work item into queue which is present with callback with no parameter.

static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback)
ParameterTypeDescription
callbackWaitCallbackCallback function to be used as a job.

ReturnValue

Always returns true.

See Also

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

Puts work item into queue which is present with callback with no parameter.

static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback, const System::SharedPtr<System::Object> &state)
ParameterTypeDescription
callbackWaitCallbackCallback function to be used as a job.
stateconst System::SharedPtr<System::Object>&Job function parameter.

ReturnValue

Always returns true.

See Also