System.Threading.TThreadPool.SetMaxWorkerThreads
Delphi
function SetMaxWorkerThreads(Value: Integer): Boolean;
C++
bool __fastcall SetMaxWorkerThreads(int Value);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Threading.pas System.Threading.hpp |
System.Threading | TThreadPool |
Description
Sets the maximum number of threads that can work in the system.
SetMaxWorkerThreads changes the value of the number of CPU cores if Value is higher than the current value. It returns True if the change is succesful, False otherwise.