## ThreadPool::QueueUserWorkItem(WaitCallback) method


Puts work item into queue which is present with callback with no parameter.

```cpp
static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback)
```


| Parameter | Type | Description |
| --- | --- | --- |
| callback | WaitCallback | Callback function to be used as a job. |

### ReturnValue

Always returns true.

## See Also

* Typedef [WaitCallback](../../waitcallback/)
* Class [ThreadPool](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PDF for C++](../../../)
## ThreadPool::QueueUserWorkItem(WaitCallback, const System::SharedPtr\<System::Object\>\&) method


Puts work item into queue which is present with callback with no parameter.

```cpp
static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback, const System::SharedPtr<System::Object> &state)
```


| Parameter | Type | Description |
| --- | --- | --- |
| callback | WaitCallback | Callback function to be used as a job. |
| state | const System::SharedPtr\<System::Object\>\& | Job function parameter. |

### ReturnValue

Always returns true.

## See Also

* Typedef [WaitCallback](../../waitcallback/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [ThreadPool](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PDF for C++](../../../)
