Spec-Zone.ru › Nim 1

cpuinfo

This module implements procs to determine the number of CPUs / cores.

Example:

block:
  doAssert countProcessors() > 0

Imports

posix

Procs

proc countProcessors(): int {...}{.gcsafe, extern: "ncpi$1", raises: [], tags: [].}
returns the number of the processors/cores the machine has. Returns 0 if it cannot be detected. Source Edit

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/cpuinfo.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API