rename std/threads to std/typedthreads (#20850)
* rename `std/threads` to `std/oldthreads` * fixes tests * rename to `typedthreads` * changelog
This commit is contained in:
parent
06cd15663d
commit
e03a178bff
11 changed files with 12 additions and 12 deletions
|
|
@ -10,7 +10,7 @@ import stdtest/testutils
|
|||
import std/[assertions]
|
||||
|
||||
when not defined(js):
|
||||
import std/threads
|
||||
import std/typedthreads
|
||||
|
||||
# "LATIN CAPITAL LETTER AE" in UTF-8 (0xc386)
|
||||
const unicodeUtf8 = "\xc3\x86"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ discard """
|
|||
"""
|
||||
|
||||
import os, net, nativesockets, asyncdispatch
|
||||
import std/[assertions, threads]
|
||||
import std/[assertions, typedthreads]
|
||||
|
||||
## Test for net.dial
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ proc c_getenv(env: cstring): cstring {.importc: "getenv", header: "<stdlib.h>".}
|
|||
|
||||
when not defined(js) and not defined(nimscript):
|
||||
when defined(nimPreviewSlimSystem):
|
||||
import std/threads
|
||||
import std/typedthreads
|
||||
block: # bug #18533
|
||||
var thr: Thread[void]
|
||||
proc threadFunc {.thread.} = putEnv("foo", "fooVal2")
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ discard """
|
|||
disabled: "openbsd"
|
||||
"""
|
||||
# disabled: pending bug #15713
|
||||
import std/[net, nativesockets, assertions, threads]
|
||||
import std/[net, nativesockets, assertions, typedthreads]
|
||||
|
||||
when defined(posix): import os, posix
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue