stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r647255 - /stdcxx/trunk/src/once.cpp
Date Fri, 11 Apr 2008 18:27:41 GMT
Author: faridz
Date: Fri Apr 11 11:27:40 2008
New Revision: 647255

URL: http://svn.apache.org/viewvc?rev=647255&view=rev
Log:
2008-04-11 Farid Zaripov <farid_zaripov@epam.com>

	* src/once.cpp (__rw_once): Cast init to int& to avoid using mutex
	version of __rw_atomic_predecrement() when atomic version is present
	(see r644662).

Modified:
    stdcxx/trunk/src/once.cpp

Modified: stdcxx/trunk/src/once.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/src/once.cpp?rev=647255&r1=647254&r2=647255&view=diff
==============================================================================
--- stdcxx/trunk/src/once.cpp (original)
+++ stdcxx/trunk/src/once.cpp Fri Apr 11 11:27:40 2008
@@ -132,7 +132,8 @@
             func ();
         }
         _CATCH (...) {
-            _RWSTD_ATOMIC_PREDECREMENT (init, false);
+            _RWSTD_ATOMIC_PREDECREMENT (
+                _RWSTD_CONST_CAST (int&, init), false);
             _RETHROW;
         }
 



Mime
View raw message