## ThreadPoolImpl::SetMaxThreads method


Sets number of threads owned by pool.

```cpp
bool System::Threading::ThreadPoolImpl::SetMaxThreads(int wt, int cpt)
```


| Parameter | Type | Description |
| --- | --- | --- |
| wt | int | Maximal number of worker threads. |
| cpt | int | Maximal number of [IO](../../../system.io/) threads. |

### ReturnValue

True if parameters were accepted, false otherwise.

## See Also

* Class [ThreadPoolImpl](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PUB for C++](../../../)
