Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86002 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2013-09-29 10:41:02


Author: viboes
Date: 2013-09-29 10:41:01 EDT (Sun, 29 Sep 2013)
New Revision: 86002
URL: http://svn.boost.org/trac/boost/changeset/86002

Log:
Thread: provide physical_concurrency conditionally.

Text files modified:
   trunk/boost/thread/scoped_thread.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/thread/scoped_thread.hpp
==============================================================================
--- trunk/boost/thread/scoped_thread.hpp Sun Sep 29 07:46:58 2013 (r86001)
+++ trunk/boost/thread/scoped_thread.hpp 2013-09-29 10:41:01 EDT (Sun, 29 Sep 2013) (r86002)
@@ -266,10 +266,12 @@
       return thread::hardware_concurrency();
     }
 
+#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY
     static unsigned physical_concurrency() BOOST_NOEXCEPT
     {
       return thread::physical_concurrency();
     }
+#endif
   };
 
   /**


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