[fpc-pascal] detect CPU cores
    Sven Barth 
    pascaldragon at googlemail.com
       
    Fri Sep 12 22:48:11 CEST 2014
    
    
  
On 12.09.2014 22:13, Marco van de Voort wrote:
> In our previous episode, Sven Barth said:
>>> Considering that the implementation is currently "Result := 1" for any
>>> target that is no surprise ;)
>>
>> I've now implemented GetCPUCount for all Windows targets.
>
> .. updating...
>
>>   For the BSD's
>> I'd use sysctl, which would mean that I'd need to duplicate sysctl()
>
> Why not simply use fpsysctl in unit sysctl?
Because GetCPUCount is in System unit. So I'll need to duplicate the 
fpsysctl only to implement that function (nothing else in System 
requires sysctl yet) :(
Regards,
Sven
    
    
More information about the fpc-pascal
mailing list