diff options
| author | fanquake <[email protected]> | 2017-04-25 09:34:23 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2017-12-15 14:47:43 +0800 |
| commit | 937bf4335bc58c443645dc29b8d7ceadc81e74e5 (patch) | |
| tree | 16eef2cc06b1d9d4560f2c7937c18d80beacc714 /src/util.h | |
| parent | Merge #10839: Don't use pass by reference to const for cheaply-copied types (... (diff) | |
| download | discoin-937bf4335bc58c443645dc29b8d7ceadc81e74e5.tar.xz discoin-937bf4335bc58c443645dc29b8d7ceadc81e74e5.zip | |
Use std::thread::hardware_concurrency, instead of Boost, to determine available cores
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h index 3cc4c2681..bef22f8eb 100644 --- a/src/util.h +++ b/src/util.h @@ -295,9 +295,8 @@ std::string HelpMessageGroup(const std::string& message); std::string HelpMessageOpt(const std::string& option, const std::string& message); /** - * Return the number of physical cores available on the current system. - * @note This does not count virtual cores, such as those provided by HyperThreading - * when boost is newer than 1.56. + * Return the number of cores available on the current system. + * @note This does count virtual cores, such as those provided by HyperThreading. */ int GetNumCores(); |