$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r85848 - in trunk/boost/sync/detail: . event
From: tim_at_[hidden]
Date: 2013-09-23 05:27:12
Author: timblechmann
Date: 2013-09-23 05:27:12 EDT (Mon, 23 Sep 2013)
New Revision: 85848
URL: http://svn.boost.org/trac/boost/changeset/85848
Log:
sync: cleanup handling of atomics & fences
Text files modified: 
   trunk/boost/sync/detail/atomic.hpp            |     4 ++++                                    
   trunk/boost/sync/detail/event/event_futex.hpp |     1 -                                       
   trunk/boost/sync/detail/event/event_mach.hpp  |     3 +--                                     
   3 files changed, 5 insertions(+), 3 deletions(-)
Modified: trunk/boost/sync/detail/atomic.hpp
==============================================================================
--- trunk/boost/sync/detail/atomic.hpp	Mon Sep 23 04:39:02 2013	(r85847)
+++ trunk/boost/sync/detail/atomic.hpp	2013-09-23 05:27:12 EDT (Mon, 23 Sep 2013)	(r85848)
@@ -32,6 +32,8 @@
 using std::memory_order_relaxed;
 using std::memory_order_seq_cst;
 
+using std::atomic_thread_fence;
+
 #else
 
 using boost::atomic;
@@ -45,6 +47,8 @@
 using boost::memory_order_relaxed;
 using boost::memory_order_seq_cst;
 
+using boost::atomic_thread_fence;
+
 #endif
 
 }
Modified: trunk/boost/sync/detail/event/event_futex.hpp
==============================================================================
--- trunk/boost/sync/detail/event/event_futex.hpp	Mon Sep 23 04:39:02 2013	(r85847)
+++ trunk/boost/sync/detail/event/event_futex.hpp	2013-09-23 05:27:12 EDT (Mon, 23 Sep 2013)	(r85848)
@@ -17,7 +17,6 @@
 
 #include <limits>
 #include <boost/assert.hpp>
-#include <boost/atomic.hpp>
 #include <boost/sync/detail/config.hpp>
 #include <boost/sync/detail/atomic.hpp>
 #include <boost/sync/detail/pause.hpp>
Modified: trunk/boost/sync/detail/event/event_mach.hpp
==============================================================================
--- trunk/boost/sync/detail/event/event_mach.hpp	Mon Sep 23 04:39:02 2013	(r85847)
+++ trunk/boost/sync/detail/event/event_mach.hpp	2013-09-23 05:27:12 EDT (Mon, 23 Sep 2013)	(r85848)
@@ -12,7 +12,6 @@
 
 #include <cstddef>
 #include <boost/assert.hpp>
-#include <boost/atomic.hpp>
 #include <boost/cstdint.hpp>
 
 #include <boost/sync/detail/config.hpp>
@@ -71,7 +70,7 @@
                 }
             }
 
-            atomic_thread_fence( memory_order_release );
+            detail::atomic_thread_fence( memory_order_release );
         } else {
             m_state.store( 1, memory_order_release );
             semaphore_signal_all( m_sem ); // wake all threads!& reset semaphore count