System.Threading.TThreadPool.SetMinWorkerThreads
Delphi
function SetMinWorkerThreads(Value: Integer): Boolean;
C++
bool __fastcall SetMinWorkerThreads(int Value);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.Threading.pas System.Threading.hpp |
System.Threading | TThreadPool |
Description
Définit le nombre minimal de threads pouvant s'exécuter dans le système.
SetMinWorkerThreads change la valeur du nombre de coeurs de CPU si Value
est inférieure au nombre maximal de threads. Elle renvoie True
si le changement a réussi, sinon elle renvoie False
.