summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-03-12 20:04:32 +0800
committerGitHub <noreply@github.com>2021-03-12 13:04:32 +0100
commit2e730f1452254ae7c86d89b167f0fe9e002f57b4 (patch)
tree65ac152aef5e3214b3577f8c5dc3b978275dcdb9 /lib
parentd97bf4f1c80ef41789ecfc3430e04293d2b20043 (diff)
downloadNim-2e730f1452254ae7c86d89b167f0fe9e002f57b4.tar.gz
rename channels to channels_builtin (#17330)
* improve test coverage for isolation

* a bit better

* rename channels to channels_builtin
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/deques.nim2
-rw-r--r--lib/pure/concurrency/threadpool.nim2
-rw-r--r--lib/system.nim2
-rw-r--r--lib/system/channels_builtin.nim (renamed from lib/system/channels.nim)0
4 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/collections/deques.nim b/lib/pure/collections/deques.nim
index a75de0dfb..c8bbb1cc6 100644
--- a/lib/pure/collections/deques.nim
+++ b/lib/pure/collections/deques.nim
@@ -46,7 +46,7 @@ runnableExamples:
 ## See also
 ## ========
 ## * `lists module <lists.html>`_ for singly and doubly linked lists and rings
-## * `channels module <channels.html>`_ for inter-thread communication
+## * `channels module <channels_builtin.html>`_ for inter-thread communication
 
 import std/private/since
 
diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim
index 1eb03b159..905e668ce 100644
--- a/lib/pure/concurrency/threadpool.nim
+++ b/lib/pure/concurrency/threadpool.nim
@@ -14,7 +14,7 @@
 ## See also
 ## ========
 ## * `threads module <threads.html>`_ for basic thread support
-## * `channels module <channels.html>`_ for message passing support
+## * `channels module <channels_builtin.html>`_ for message passing support
 ## * `locks module <locks.html>`_ for locks and condition variables
 ## * `asyncdispatch module <asyncdispatch.html>`_ for asynchronous IO
 
diff --git a/lib/system.nim b/lib/system.nim
index 05b1ff9ff..f0c3da517 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
index c7a445766..c7a445766 100644
--- a/lib/system/channels.nim
+++ b/lib/system/channels_builtin.nim