Go to the source code of this file.
Functions | |
unsigned int | nix::getMaxCPU () |
void | nix::setStackSize (size_t stackSize) |
void | nix::restoreProcessContext (bool restoreMounts) |
std::optional< Path > | nix::getSelfExe () |
unsigned int nix::getMaxCPU | ( | ) |
If cgroups are active, attempt to calculate the number of CPUs available. If cgroups are unavailable or if cpu.max is set to "max", return 0.
std::optional< Path > nix::getSelfExe | ( | ) |
void nix::restoreProcessContext | ( | bool | restoreMounts = true | ) |
Restore the original inherited Unix process context (such as signal masks, stack size).
See unix::startSignalHandlerThread(), unix::saveSignalMask().
void nix::setStackSize | ( | size_t | stackSize | ) |
Change the stack size.