You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/07/11 02:39:52 UTC

svn commit: r555128 - /incubator/stdcxx/trunk/tests/src/thread.cpp

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  <se...@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)