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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user