diff --git a/doc/lib.rst b/doc/lib.rst index 47ede70ee8c7e..2a4c2c03c8b17 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -39,7 +39,7 @@ Automatic imports Basic Nim thread support. **Note:** This is part of the system module. Do not import it explicitly. Enabled with ``--threads:on``. -* `channels `_ +* `channels `_ Nim message passing support for threads. **Note:** This is part of the system module. Do not import it explicitly. Enabled with ``--threads:on``. diff --git a/doc/manual.rst b/doc/manual.rst index 4686247d21775..89b3bdb94cf98 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -7721,7 +7721,7 @@ Threads 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 +See the `threads `_ and `channels `_ modules for the low-level thread API. There are also high-level parallelism constructs available. See `spawn `_ for further details. diff --git a/lib/pure/collections/deques.nim b/lib/pure/collections/deques.nim index a75de0dfb1090..c8bbb1cc67fab 100644 --- a/lib/pure/collections/deques.nim +++ b/lib/pure/collections/deques.nim @@ -46,7 +46,7 @@ runnableExamples: ## See also ## ======== ## * `lists module `_ for singly and doubly linked lists and rings -## * `channels module `_ for inter-thread communication +## * `channels module `_ for inter-thread communication import std/private/since diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 1eb03b1598dc3..905e668ce9d86 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -14,7 +14,7 @@ ## See also ## ======== ## * `threads module `_ for basic thread support -## * `channels module `_ for message passing support +## * `channels module `_ for message passing support ## * `locks module `_ for locks and condition variables ## * `asyncdispatch module `_ for asynchronous IO diff --git a/lib/system.nim b/lib/system.nim index 05b1ff9ffe1f7..f0c3da51730bb 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2385,7 +2385,7 @@ when notJSnotNims and hasAlloc: include "system/repr" when notJSnotNims and hasThreadSupport and hostOS != "standalone": - include "system/channels" + include "system/channels_builtin" when notJSnotNims and hostOS != "standalone": diff --git a/lib/system/channels.nim b/lib/system/channels_builtin.nim similarity index 100% rename from lib/system/channels.nim rename to lib/system/channels_builtin.nim diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim index 530ce85712144..8f4dd87a9cd9f 100644 --- a/tools/kochdocs.nim +++ b/tools/kochdocs.nim @@ -126,7 +126,7 @@ gc.rst doc0 = """ lib/system/threads.nim -lib/system/channels.nim +lib/system/channels_builtin.nim """.splitWhitespace() # ran by `nim doc0` instead of `nim doc` withoutIndex = """