mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Make getDefaultCores() static
This commit is contained in:
parent
3742ae061e
commit
9321669353
2 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ std::vector<Path> getUserConfigFiles()
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int Settings::getDefaultCores() const
|
unsigned int Settings::getDefaultCores()
|
||||||
{
|
{
|
||||||
const unsigned int concurrency = std::max(1U, std::thread::hardware_concurrency());
|
const unsigned int concurrency = std::max(1U, std::thread::hardware_concurrency());
|
||||||
const unsigned int maxCPU = getMaxCPU();
|
const unsigned int maxCPU = getMaxCPU();
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ public:
|
||||||
|
|
||||||
Settings();
|
Settings();
|
||||||
|
|
||||||
unsigned int getDefaultCores() const;
|
static unsigned int getDefaultCores();
|
||||||
|
|
||||||
Path nixPrefix;
|
Path nixPrefix;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue