[Overview][Classes][Procedures and functions][Index] Reference for unit 'UTF8Process' (#lazutils)

GetSystemThreadCount

Gets a default value for the number of threads on the system

Declaration

Source position: utf8process.pp line 57

function GetSystemThreadCount: Integer;

Function result

Default for the number of threads on the system

Description

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.