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

@ -23,7 +23,7 @@ when not compileOption("threads"):
import cpuinfo, cpuload, locks, os
when defined(nimPreviewSlimSystem):
import std/[assertions, threads]
import std/[assertions, typedthreads]
{.push stackTrace:off.}

View file

@ -2071,9 +2071,9 @@ when not defined(js):
when hostOS != "standalone":
include system/threadimpl
when not defined(nimPreviewSlimSystem):
{.deprecated: "threads is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/threads`".}
import std/threads
export threads
{.deprecated: "threads is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/typedthreads`".}
import std/typedthreads
export typedthreads
elif not defined(nogc) and not defined(nimscript):
when not defined(useNimRtl) and not defined(createNimRtl): initStackBottom()