Re: [Boost-bugs] [Boost C++ Libraries] #10996: Thread physical_concurrency() is failing on Windows

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10996: Thread physical_concurrency() is failing on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-08 11:16:14


#10996: Thread physical_concurrency() is failing on Windows
-------------------------------+------------------------
  Reporter: ned14 | Owner: ned14
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.57.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+------------------------

Comment (by viboes):

 Would it be enough to return


 {{{
 return hardware_concurrency();
 }}}


 instead of returning 0 in

 {{{
     unsigned thread::physical_concurrency() BOOST_NOEXCEPT
     {
 // a bit too strict: Windows XP with SP3 would be sufficient
 #if BOOST_PLAT_WINDOWS_RUNTIME \
     || ( BOOST_USE_WINAPI_VERSION <= BOOST_WINAPI_VERSION_WINXP ) \
     || ( defined(__MINGW32__) && !defined(__MINGW64__) )
         return 0;
 #else
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10996#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC