Author: faridz
Date: Fri Apr 11 11:32:17 2008
New Revision: 647258

URL: http://svn.apache.org/viewvc?rev=647258&view=rev
Log:
2008-04-11 Farid Zaripov <[EMAIL PROTECTED]>

        * tests/localization/22.locale.statics.mt.cpp (test_classic): Cast 
nthreads
        to int& to avoid using mutex version of __rw_atomic_preincrement() when 
atomic
        version is present.

Modified:
    stdcxx/trunk/tests/localization/22.locale.statics.mt.cpp

Modified: stdcxx/trunk/tests/localization/22.locale.statics.mt.cpp
URL: 
http://svn.apache.org/viewvc/stdcxx/trunk/tests/localization/22.locale.statics.mt.cpp?rev=647258&r1=647257&r2=647258&view=diff
==============================================================================
--- stdcxx/trunk/tests/localization/22.locale.statics.mt.cpp (original)
+++ stdcxx/trunk/tests/localization/22.locale.statics.mt.cpp Fri Apr 11 
11:32:17 2008
@@ -69,7 +69,9 @@
 {
     static volatile int nthreads;
 
-    _RWSTD_ATOMIC_PREINCREMENT (nthreads, false);
+    // cast nthreads to int& (see STDCXX-792)
+    // casting should be removed after fixing STDCXX-794
+    _RWSTD_ATOMIC_PREINCREMENT (_RWSTD_CONST_CAST (int&, nthreads), false);
 
     // spin until all threads have been created in order to icrease
     // the odds that at least two of them will hit the tested function


Reply via email to