Hi,
If you are using Qt, maybe QThread::idealThreadCount() can help? From
documentation:
"Returns the ideal number of threads that can be run on the system. This
is done querying the number of processor cores, both real and logical, in
the system. This function returns -1 if the number of processor cores
could not be detected."
http://doc.qt.nokia.com/4.6/qthread.html#idealThreadCount
- Mhondoz
On Tue, 12 Jan 2010 16:26:22 +0100, Sukender <[email protected]> wrote:
Hi all,
Is there a way to easilly detect the number of CPU/cores available in a
cross-platform way? Do you know a piece of code or lib that does it?
Thanks.
Sukender
PVLE - Lightweight cross-platform game engine -
http://pvle.sourceforge.net/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org