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

Thread: provide physical concurrency conditional until it no regression is introduced.

[SVN r85926]
This commit is contained in:
Vicente J. Botet Escriba
2013-09-26 06:54:33 +00:00
parent 04e3d918fb
commit 4a63d4992c
4 changed files with 9 additions and 1 deletions

View File

@@ -417,6 +417,7 @@ namespace boost
return info.dwNumberOfProcessors;
}
#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY
unsigned thread::physical_concurrency() BOOST_NOEXCEPT
{
unsigned cores = 0;
@@ -438,6 +439,7 @@ namespace boost
}
return cores;
}
#endif
thread::native_handle_type thread::native_handle()
{