Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85967 - in trunk/boost/log: detail utility
From: andrey.semashev_at_[hidden]
Date: 2013-09-26 14:53:07


Author: andysem
Date: 2013-09-26 14:53:07 EDT (Thu, 26 Sep 2013)
New Revision: 85967
URL: http://svn.boost.org/trac/boost/changeset/85967

Log:
Minor code cleanup.

Text files modified:
   trunk/boost/log/detail/spin_mutex.hpp | 2 +-
   trunk/boost/log/utility/unique_identifier_name.hpp | 5 ++---
   2 files changed, 3 insertions(+), 4 deletions(-)

Modified: trunk/boost/log/detail/spin_mutex.hpp
==============================================================================
--- trunk/boost/log/detail/spin_mutex.hpp Thu Sep 26 14:32:55 2013 (r85966)
+++ trunk/boost/log/detail/spin_mutex.hpp 2013-09-26 14:53:07 EDT (Thu, 26 Sep 2013) (r85967)
@@ -78,7 +78,7 @@
 # define BOOST_LOG_PAUSE_OP _mm_pause()
 # endif
 # if defined(__INTEL_COMPILER)
-# define BOOST_LOG_COMPILER_BARRIER __asm { nop }
+# define BOOST_LOG_COMPILER_BARRIER __memory_barrier()
 # else
 extern "C" void _ReadWriteBarrier(void);
 #pragma intrinsic(_ReadWriteBarrier)

Modified: trunk/boost/log/utility/unique_identifier_name.hpp
==============================================================================
--- trunk/boost/log/utility/unique_identifier_name.hpp Thu Sep 26 14:32:55 2013 (r85966)
+++ trunk/boost/log/utility/unique_identifier_name.hpp 2013-09-26 14:53:07 EDT (Thu, 26 Sep 2013) (r85967)
@@ -9,13 +9,12 @@
  * \author Andrey Semashev
  * \date 30.04.2008
  *
- * The header contains BOOST_LOG_UNIQUE_IDENTIFIER_NAME macro definition.
+ * The header contains \c BOOST_LOG_UNIQUE_IDENTIFIER_NAME macro definition.
  */
 
 #ifndef BOOST_LOG_UTILITY_UNIQUE_IDENTIFIER_NAME_HPP_INCLUDED_
 #define BOOST_LOG_UTILITY_UNIQUE_IDENTIFIER_NAME_HPP_INCLUDED_
 
-#include <boost/detail/workaround.hpp>
 #include <boost/preprocessor/cat.hpp>
 #include <boost/log/detail/config.hpp>
 
@@ -37,7 +36,7 @@
  *
  * Constructs a unique (in the current file scope) token that can be used as a variable name.
  * The name will contain a prefix passed in the \a prefix argument. This allows to use the
- * macro multiple times in another macro.
+ * macro multiple times on a single line.
  */
 
 // In VC 7.0 and later when compiling with /ZI option __LINE__ macro is corrupted


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