stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r551634 - in /incubator/stdcxx/trunk/tests/localization: 22.locale.money.put.mt.cpp 22.locale.moneypunct.mt.cpp 22.locale.num.put.mt.cpp 22.locale.numpunct.mt.cpp 22.locale.time.put.mt.cpp
Date Thu, 28 Jun 2007 17:40:42 GMT
Author: sebor
Date: Thu Jun 28 10:40:41 2007
New Revision: 551634

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

	* 22.locale.moneypunct.mt.cpp [_REENTRANT] (main): Set the number
	of nthreads to the greater of the number of processors and 2 (for
	uniprocessor systems) by default.
	* 22.locale.money.put.mt.cpp: Same.
	* 22.locale.numpunct.mt.cpp: Same.
	* 22.locale.num.put.mt.cpp: Same.
	* 22.locale.time.put.mt.cpp: Same.

Modified:
    incubator/stdcxx/trunk/tests/localization/22.locale.money.put.mt.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.mt.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.num.put.mt.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.time.put.mt.cpp

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.money.put.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.money.put.mt.cpp?view=diff&rev=551634&r1=551633&r2=551634
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.money.put.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.money.put.mt.cpp Thu Jun 28 10:40:41
2007
@@ -271,8 +271,11 @@
 {
 #ifdef _RWSTD_REENTRANT
 
-    // set nthreads to the number of processors by default
+    // set nthreads to the greater of the number of processors
+    // and 2 (for uniprocessor systems) by default
     rw_opt_nthreads = rw_get_cpus ();
+    if (rw_opt_nthreads < 2)
+        rw_opt_nthreads = 2;
 
 #endif   // _RWSTD_REENTRANT
 

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.mt.cpp?view=diff&rev=551634&r1=551633&r2=551634
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.mt.cpp Thu Jun 28 10:40:41
2007
@@ -464,8 +464,11 @@
 {
 #ifdef _RWSTD_REENTRANT
 
-    // set nthreads to the number of processors by default
+    // set nthreads to the greater of the number of processors
+    // and 2 (for uniprocessor systems) by default
     rw_opt_nthreads = rw_get_cpus ();
+    if (rw_opt_nthreads < 2)
+        rw_opt_nthreads = 2;
 
 #endif   // _RWSTD_REENTRANT
 

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.num.put.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.num.put.mt.cpp?view=diff&rev=551634&r1=551633&r2=551634
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.num.put.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.num.put.mt.cpp Thu Jun 28 10:40:41
2007
@@ -346,8 +346,11 @@
 {
 #ifdef _RWSTD_REENTRANT
 
-    // set nthreads to the number of processors by default
+    // set nthreads to the greater of the number of processors
+    // and 2 (for uniprocessor systems) by default
     rw_opt_nthreads = rw_get_cpus ();
+    if (rw_opt_nthreads < 2)
+        rw_opt_nthreads = 2;
 
 #endif   // _RWSTD_REENTRANT
 

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp?view=diff&rev=551634&r1=551633&r2=551634
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp Thu Jun 28 10:40:41
2007
@@ -282,8 +282,11 @@
 {
 #ifdef _RWSTD_REENTRANT
 
-    // set nthreads to the number of processors by default
+    // set nthreads to the greater of the number of processors
+    // and 2 (for uniprocessor systems) by default
     rw_opt_nthreads = rw_get_cpus ();
+    if (rw_opt_nthreads < 2)
+        rw_opt_nthreads = 2;
 
 #endif   // _RWSTD_REENTRANT
 

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.time.put.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.time.put.mt.cpp?view=diff&rev=551634&r1=551633&r2=551634
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.time.put.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.time.put.mt.cpp Thu Jun 28 10:40:41
2007
@@ -236,8 +236,11 @@
 {
 #ifdef _RWSTD_REENTRANT
 
-    // set nthreads to the number of processors by default
+    // set nthreads to the greater of the number of processors
+    // and 2 (for uniprocessor systems) by default
     rw_opt_nthreads = rw_get_cpus ();
+    if (rw_opt_nthreads < 2)
+        rw_opt_nthreads = 2;
 
 #endif   // _RWSTD_REENTRANT
 



Mime
View raw message