[fpc-pascal] detect CPU cores
Marco van de Voort
marcov at stack.nl
Fri Sep 12 22:13:40 CEST 2014
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?
> and the necessary constants/types...
Yes. The FreeBSD ones are probably 5.x. Bonus points if you can haul those
constants through h2pas!
More information about the fpc-pascal
mailing list