Skip to content

Commit

Permalink
fix #9673.
Browse files Browse the repository at this point in the history
  • Loading branch information
viboes committed Feb 26, 2014
1 parent 9d1c957 commit 82379f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/win32/thread.cpp
Expand Up @@ -420,6 +420,7 @@ namespace boost
unsigned thread::physical_concurrency() BOOST_NOEXCEPT
{
unsigned cores = 0;
#if !(defined(__MINGW32__) || defined (__MINGW64__))
DWORD size = 0;

GetLogicalProcessorInformation(NULL, &size);
Expand All @@ -436,6 +437,7 @@ namespace boost
if (buffer[i].Relationship == RelationProcessorCore)
++cores;
}
#endif
return cores;
}

Expand Down

0 comments on commit 82379f8

Please sign in to comment.