On Wed, 7 Feb 2007, Stefan Eilemann wrote:
On 7. Feb, 2007, at 17:16 , Robert Osfield wrote:
Hi Stefan,
Is you machine dual core or single core?
Dual core, though I don't think OpenThreads detects this:
int OpenThreads::GetNumberOfProcessors()
{
#if defined(__linux__)
return sysconf(_SC_NPROCESSORS_CONF);
#else
return 1;
#endif
}
I am not an Apple developer, but this might be useful to detect the
number of processors on a Mac:
http://developer.apple.com/documentation/Carbon/Reference/Multiprocessing_Services/index.html#//apple_ref/doc/uid/TP30000145
Also, this may be useful for Win32 systems:
http://msdn2.microsoft.com/en-us/library/system.environment.processorcount.aspx
--
____ __ Eric Sokolowsky (GST) NASA Goddard Space Flight Center
/ __/__/_/__ Visualization Programmer Scientific Visualization Studio
/ __/ _/ / _/ 301.286.3751 Mailstop 610.3 Bldg 28 Rm E102
/___/_//_/__/ [EMAIL PROTECTED] Greenbelt, MD 20771
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/