From 6bb43c91a103261800c08be375774a27d8b1a051 Mon Sep 17 00:00:00 2001 From: poop Date: Fri, 5 May 2023 03:28:59 -0500 Subject: [PATCH] Fix(SlimSystem): import std assertions and typedthreads --- .gitignore | 3 +++ threading/channels.nim | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 32e1dc0..dc859ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ nimcache/ nimblecache/ htmldocs/ + +/tests/megatest* +/outputGotten.txt diff --git a/threading/channels.nim b/threading/channels.nim index 6e21cf1..76b82a0 100644 --- a/threading/channels.nim +++ b/threading/channels.nim @@ -82,6 +82,10 @@ runnableExamples("--threads:on --gc:orc"): when not defined(gcArc) and not defined(gcOrc) and not defined(nimdoc): {.error: "This channel implementation requires --gc:arc or --gc:orc".} +when defined(nimPreviewSlimSystem): + import std/typedthreads + import std/assertions + import std/[locks, atomics, isolation] import system/ansi_c