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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal