2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-03 08:42:08 +00:00

Fixed compilation with MSVC.

This commit is contained in:
Andrey Semashev
2014-01-26 21:24:34 +04:00
parent 6f6614717e
commit 173eb4a64f

View File

@@ -231,9 +231,9 @@ public:
clear(memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
{
if (order != memory_order_seq_cst) {
platform_fence_before_store(order);
atomics::detail::platform_fence_before_store(order);
BOOST_ATOMIC_STORE32(&v_, 0);
platform_fence_after_store(order);
atomics::detail::platform_fence_after_store(order);
} else {
BOOST_ATOMIC_COMPILER_BARRIER();
BOOST_ATOMIC_INTERLOCKED_EXCHANGE(&v_, 0);