From 495585bc1e9bc71b4555072fa7127314213900f9 Mon Sep 17 00:00:00 2001 From: Tomohiro Date: Sat, 13 Oct 2018 15:55:34 +0900 Subject: [PATCH] manual: Fix links to Parallel & Spawn (#9342) (cherry picked from commit eb4272ba1cbed567a35d8c2eb8eff4081794b190) --- doc/lib.rst | 2 +- doc/manual.rst | 2 +- lib/pure/concurrency/threadpool.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/lib.rst b/doc/lib.rst index 5ae1a59c77..e62ac90bc6 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -59,7 +59,7 @@ Core This module defines compile-time reflection procs for working with types. * `threadpool `_ - Implements Nim's `spawn `_. + Implements Nim's `spawn `_. * `cpuinfo `_ This module implements procs to determine the number of CPUs / cores. diff --git a/doc/manual.rst b/doc/manual.rst index ee7609960d..8f6aae29e2 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -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. See the `threads `_ and `channels `_ modules 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 programming languages (C, Pascal, Java): Each thread has its own (garbage diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index f3b13fac58..9c9425d9f7 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -7,7 +7,7 @@ # distribution, for details about the copyright. # -## Implements Nim's 'spawn'. +## Implements Nim's `spawn `_. when not compileOption("threads"): {.error: "Threadpool requires --threads:on option.".}