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 steve.tousignant@…, 8 years ago)

Proposed patch for boost threading

  • boost_1_57_0/libs/thread/src/win32/thread.cpp

    old new namespace boost  
    533533        return hardware_concurrency();
    534534#else
    535535        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
    537538        DWORD size = 0;
    538539
    539540        GetLogicalProcessorInformation(NULL, &size);
    namespace boost  
    550551            if (buffer[i].Relationship == RelationProcessorCore)
    551552                ++cores;
    552553        }
     554#else
    553555#endif
    554556        return cores;
    555557#endif