| [Overview][Classes][Procedures and functions][Index] |
Gets a default value for the number of threads on the system
Source position: utf8process.pp line 57
function GetSystemThreadCount: Integer; |
Default for the number of threads on the system
GetSystemThreadCount is an Integer function used to get the default value for the number of threads on the system. The implementation for GetSystemThreadCount is platform- and/or OS-specific. For the Windows environment, the total number of processors available (including logical hyperthreaded processors) are returned using the GetProcessAffinityMask API. When GetProcessAffinityMask is unavailable, the total number of processors from GetSystemInfo is used. For UNIX-like environments, either the sysconf or the fpsysctl function is used. For other environments, the value is 1.
| lazarus-ccr.sourceforge.net |