parent
1e4093d949
commit
42d2c3088e
12 changed files with 135 additions and 19 deletions
|
|
@ -49,6 +49,9 @@ when defined(haiku):
|
|||
proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
|
||||
## returns the number of the processors/cores the machine has.
|
||||
## Returns 0 if it cannot be detected.
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## block: doAssert countProcessors() >= 0
|
||||
when defined(windows):
|
||||
type
|
||||
SYSTEM_INFO {.final, pure.} = object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue