From e3a1498355121b45ae8e9891c0950db607afe170 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sun, 29 Sep 2013 14:41:01 +0000 Subject: [PATCH] Thread: provide physical_concurrency conditionally. [SVN r86002] --- include/boost/thread/scoped_thread.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/thread/scoped_thread.hpp b/include/boost/thread/scoped_thread.hpp index d7fbabd8..6fa6dd69 100644 --- a/include/boost/thread/scoped_thread.hpp +++ b/include/boost/thread/scoped_thread.hpp @@ -266,10 +266,12 @@ namespace boost return thread::hardware_concurrency(); } +#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY static unsigned physical_concurrency() BOOST_NOEXCEPT { return thread::physical_concurrency(); } +#endif }; /**