System.Threading.TThreadPool.SetMaxWorkerThreads
Delphi
function SetMaxWorkerThreads(Value: Integer): Boolean;
C++
bool __fastcall SetMaxWorkerThreads(int Value);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Threading.pas System.Threading.hpp |
System.Threading | TThreadPool |
説明
システム内で動作できる最大スレッド数を設定します。
Value
が現在の値よりも大きい場合、SetMaxWorkerThreads は CPU コア数の値を変更します。変更が成功すれば True
が、成功しなければ False
が返されます。