mirror of
https://github.com/boostorg/thread.git
synced 2026-01-27 07:22:11 +00:00
Thread: provide physical_concurrency conditionally.
[SVN r86002]
This commit is contained in:
@@ -266,10 +266,12 @@ namespace boost
|
||||
return thread::hardware_concurrency();
|
||||
}
|
||||
|
||||
#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY
|
||||
static unsigned physical_concurrency() BOOST_NOEXCEPT
|
||||
{
|
||||
return thread::physical_concurrency();
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user