2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 23:42:18 +00:00

Fix physical_concurrency() on win32.

This commit is contained in:
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
2015-02-16 18:03:46 +00:00
parent ffd856073f
commit 6a427ac4b6

View File

@@ -529,11 +529,8 @@ namespace boost
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;
#if BOOST_PLAT_WINDOWS_RUNTIME
return hardware_concurrency();
#else
unsigned cores = 0;
DWORD size = 0;