System.Threading.TThreadPool.SetMaxWorkerThreads

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also