[fpc-devel] Feature announcement: Extension of TThread's interface

Marco van de Voort marcov at stack.nl
Fri Dec 28 17:59:56 CET 2012


In our previous episode, Ewald said:
> > cores' (no hyperthreading), and 0.5 if 'siblings' = 2 x 'cpu cores'
> > (hyperthreading enabled).
> Yeah, that could work, but then again the actual format of the data may
> be different measured over several distributions: suppose all `:` all of
> the sudden become `=`? Suppose that an identifier like `processor`
> undergoes a slicht namechange to `processorid`?

True. /proc is indeed not very desirable in general, and might vary per
architecture too.

OTOH, even if CPUID works, and it is maintainable, it only is for one
architecture, and in general in these cases the problem is getting it to
work for the least popular targets/architectures, the most popular ones are
usually easily implemented after a few googles, and also keeping them up to
date is less of a problem.



More information about the fpc-devel mailing list