manual: Fix links to Parallel & Spawn (#9342)

This commit is contained in:
Tomohiro 2018-10-13 15:55:34 +09:00 • committed by Andreas Rumpf
commit eb4272ba1c
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ Core
This module defines compile-time reflection procs for working with types. This module defines compile-time reflection procs for working with types.
* `threadpool <threadpool.html>`_ * `threadpool <threadpool.html>`_
Implements Nim's `spawn <manual.html#spawn>`_. Implements Nim's `spawn <manual.html#parallel-amp-spawn>`_.
* `cpuinfo <cpuinfo.html>`_ * `cpuinfo <cpuinfo.html>`_
This module implements procs to determine the number of CPUs / cores. This module implements procs to determine the number of CPUs / cores.

View file

@ -8005,7 +8005,7 @@ To enable thread support the ``--threads:on`` command line switch needs to
be used. The ``system`` module then contains several threading primitives. be used. The ``system`` module then contains several threading primitives.
See the `threads <threads.html>`_ and `channels <channels.html>`_ modules See the `threads <threads.html>`_ and `channels <channels.html>`_ modules
for the low level thread API. There are also high level parallelism constructs for the low level thread API. There are also high level parallelism constructs
available. See `spawn <#parallel-spawn>`_ for further details. available. See `spawn <#parallel-amp-spawn>`_ for further details.
Nim's memory model for threads is quite different than that of other common Nim's memory model for threads is quite different than that of other common
programming languages (C, Pascal, Java): Each thread has its own (garbage programming languages (C, Pascal, Java): Each thread has its own (garbage

View file

@ -7,7 +7,7 @@
# distribution, for details about the copyright. # distribution, for details about the copyright.
# #
## Implements Nim's 'spawn'. ## Implements Nim's `spawn <manual.html#parallel-amp-spawn>`_.
when not compileOption("threads"): when not compileOption("threads"):
{.error: "Threadpool requires --threads:on option.".} {.error: "Threadpool requires --threads:on option.".}