diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2020-03-31 10:47:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 15:47:57 +0200 |
commit | 42d2c3088e1f869148fd6eb1fdce2b33f859dc2d (patch) | |
tree | 97e1d206722f5ab1c71161addc085efe8713870b /lib/pure/concurrency | |
parent | 1e4093d949ab015cd1e3e62cf0f47d83ef0bca38 (diff) | |
download | Nim-42d2c3088e1f869148fd6eb1fdce2b33f859dc2d.tar.gz |
Add Documentation (#13811)
* Add more Docs and runnableExamples
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r-- | lib/pure/concurrency/cpuinfo.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pure/concurrency/cpuinfo.nim b/lib/pure/concurrency/cpuinfo.nim index 515d7e2da..51f80b103 100644 --- a/lib/pure/concurrency/cpuinfo.nim +++ b/lib/pure/concurrency/cpuinfo.nim @@ -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 |