|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79615 - trunk/boost/atomic/detail
From: hcb_at_[hidden]
Date: 2012-07-20 04:11:42
Author: helge.bahmann
Date: 2012-07-20 04:11:39 EDT (Fri, 20 Jul 2012)
New Revision: 79615
URL: http://svn.boost.org/trac/boost/changeset/79615
Log:
Fix compilation of interlocked.hpp
Fix two compilation errors I missed due to sloppy testing :/
Reported-by: <lukester_null_at_[hidden]>
Text files modified:
trunk/boost/atomic/detail/interlocked.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/atomic/detail/interlocked.hpp
==============================================================================
--- trunk/boost/atomic/detail/interlocked.hpp (original)
+++ trunk/boost/atomic/detail/interlocked.hpp 2012-07-20 04:11:39 EDT (Fri, 20 Jul 2012)
@@ -122,9 +122,9 @@
do {
if (expected == 1)
break;
- } while (!atomics::detail::platform_cmpxchg32(expected, (uint32_t)1, &v_));
+ } while (!atomics::detail::platform_cmpxchg32_strong(expected, (uint32_t)1, &v_));
atomics::detail::platform_fence_after(order);
- return expected;
+ return expected != 0;
}
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk