[Qt-interest] get number of logical cpus

Matthias Pospiech matthias.pospiech at gmx.de
Tue Aug 25 14:46:27 CEST 2009


Sean Harmer schrieb:
> On Tuesday 25 Aug 2009 12:43:27 Matthias Pospiech wrote:
>   
>> I am using the fftw (fft math libary) which can be used with many threads.
>>
>> I have different computers, which 1, 2 or 8 logical cpus.
>> Now I would like to set the number of threads according to the number of
>> cpus.
>>
>> Does Qt offer a possibility to get the number of cores?
>> OS is Windows XP
>>     
> http://doc.trolltech.com/4.6-snapshot/qthread.html#idealThreadCount
>
>   
Looks like the function I was looking for.

However the new style of the documentation is not an improvement. The 
sans serif is not necessarily better the serif and the font size is too 
large. At least I have the impression that the readability is worse than 
before. Hope Qt will add include a designer into the redesign of the 
documentation...

Matthias




More information about the Qt-interest-old mailing list