You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/04/11 20:27:41 UTC

svn commit: r647255 - /stdcxx/trunk/src/once.cpp

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 <fa...@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;
         }