rename std/threads to std/typedthreads (#20850)

* rename `std/threads` to `std/oldthreads`

* fixes tests

* rename to `typedthreads`

* changelog
This commit is contained in:
ringabout 2022-11-16 23:35:20 +08:00 • committed by GitHub
commit e03a178bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 12 additions and 12 deletions

View file

@ -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")