stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r555128 - /incubator/stdcxx/trunk/tests/src/thread.cpp
Date Wed, 11 Jul 2007 00:39:52 GMT
Author: sebor
Date: Tue Jul 10 17:39:52 2007
New Revision: 555128

URL: http://svn.apache.org/viewvc?view=rev&rev=555128
Log:
2007-07-10  Martin Sebor  <sebor@roguewave.com>

	* thread.cpp (rw_get_cpus): Used _SC_NPROCESSORS_ONLN when #defined.

Modified:
    incubator/stdcxx/trunk/tests/src/thread.cpp

Modified: incubator/stdcxx/trunk/tests/src/thread.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/thread.cpp?view=diff&rev=555128&r1=555127&r2=555128
==============================================================================
--- incubator/stdcxx/trunk/tests/src/thread.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/thread.cpp Tue Jul 10 17:39:52 2007
@@ -429,7 +429,7 @@
     // try to obtain the number of processors that are currently online
     // programmatically and fall back on the shell script above if it
     // fails
-    ncpus = int (sysconf (_SC_NPROCESSORS_CONF));
+    ncpus = int (sysconf (_SC_NPROCESSORS_ONLN));
 
 #  elif defined (_SC_NPROCESSORS_CONF)
 



Mime
View raw message