From fc65611e82320b76fce2e6d9e92abb8556717f67 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 9 Oct 2013 15:24:58 +0000 Subject: [PATCH] Revert "Thread: provide physical concurrency conditional until it no regression is introduced." This reverts commit 271ba281aecd5c556b2b863a9f05a8066e717854. [SVN r86215] --- include/boost/thread/detail/thread.hpp | 2 -- src/pthread/thread.cpp | 4 ---- src/win32/thread.cpp | 2 -- test/Jamfile.v2 | 2 +- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/include/boost/thread/detail/thread.hpp b/include/boost/thread/detail/thread.hpp index 2f6c1581..019d0d73 100644 --- a/include/boost/thread/detail/thread.hpp +++ b/include/boost/thread/detail/thread.hpp @@ -546,9 +546,7 @@ namespace boost void detach(); static unsigned hardware_concurrency() BOOST_NOEXCEPT; -#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY static unsigned physical_concurrency() BOOST_NOEXCEPT; -#endif #define BOOST_THREAD_DEFINES_THREAD_NATIVE_HANDLE typedef detail::thread_data_base::native_handle_type native_handle_type; diff --git a/src/pthread/thread.cpp b/src/pthread/thread.cpp index e91473c2..39d476a4 100644 --- a/src/pthread/thread.cpp +++ b/src/pthread/thread.cpp @@ -27,7 +27,6 @@ #include #endif -#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY #include #include #include @@ -36,7 +35,6 @@ #include #include #include -#endif #include "./timeconv.inl" @@ -554,7 +552,6 @@ namespace boost #endif } -#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY unsigned thread::physical_concurrency() BOOST_NOEXCEPT { #ifdef __linux__ @@ -604,7 +601,6 @@ namespace boost return hardware_concurrency(); #endif } -#endif #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS void thread::interrupt() diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index f1774031..640664ef 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -417,7 +417,6 @@ namespace boost return info.dwNumberOfProcessors; } -#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY unsigned thread::physical_concurrency() BOOST_NOEXCEPT { unsigned cores = 0; @@ -439,7 +438,6 @@ namespace boost } return cores; } -#endif thread::native_handle_type thread::native_handle() { diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 10cbc4de..b2199203 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -209,7 +209,7 @@ rule thread-compile ( sources : reqs * : name ) [ thread-test test_thread.cpp ] [ thread-test test_thread_id.cpp ] [ thread-test test_hardware_concurrency.cpp ] - #[ thread-test test_physical_concurrency.cpp ] + [ thread-test test_physical_concurrency.cpp ] [ thread-test test_thread_move.cpp ] [ thread-test test_thread_return_local.cpp ] [ thread-test test_thread_move_return.cpp ]