Ticket #10788: boost-1.57.0-WinXP-SP2-PhysicalConcurrency-Return0.patch
File boost-1.57.0-WinXP-SP2-PhysicalConcurrency-Return0.patch, 767 bytes (added by , 8 years ago) |
---|
-
boost_1_57_0/libs/thread/src/win32/thread.cpp
old new namespace boost 533 533 return hardware_concurrency(); 534 534 #else 535 535 unsigned cores = 0; 536 #if !(defined(__MINGW32__) || defined (__MINGW64__)) 536 #if !(defined(__MINGW32__) || defined (__MINGW64__)) && _WIN32_WINNT >= 0x0600 537 // This part of code is only available reliably on Windows Vista and Higher 537 538 DWORD size = 0; 538 539 539 540 GetLogicalProcessorInformation(NULL, &size); … … namespace boost 550 551 if (buffer[i].Relationship == RelationProcessorCore) 551 552 ++cores; 552 553 } 554 #else 553 555 #endif 554 556 return cores; 555 557 #endif