Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69262 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2011-02-24 18:35:25


Author: pdimov
Date: 2011-02-24 18:35:22 EST (Thu, 24 Feb 2011)
New Revision: 69262
URL: http://svn.boost.org/trac/boost/changeset/69262

Log:
Honor BOOST_SP_USE_PTHREADS. Refs #5018.
Text files modified:
   trunk/boost/smart_ptr/detail/spinlock.hpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/boost/smart_ptr/detail/spinlock.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/spinlock.hpp (original)
+++ trunk/boost/smart_ptr/detail/spinlock.hpp 2011-02-24 18:35:22 EST (Thu, 24 Feb 2011)
@@ -31,7 +31,10 @@
 #include <boost/config.hpp>
 #include <boost/smart_ptr/detail/sp_has_sync.hpp>
 
-#if defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ )
+#if defined( BOOST_SP_USE_PTHREADS )
+# include <boost/smart_ptr/detail/spinlock_pt.hpp>
+
+#elif defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ )
 # include <boost/smart_ptr/detail/spinlock_gcc_arm.hpp>
 
 #elif defined( BOOST_SP_HAS_SYNC )


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