diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-10-30 00:11:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 18:11:40 +0200 |
commit | 1dab8ba334a1b53f3c8780bc8a4f8045a6ea0375 (patch) | |
tree | 070425aebd5603c0d852c64874b92505a865b74f /lib/core | |
parent | a51ed90c5ddc49d96dd96a16716f91fd543c518e (diff) | |
download | Nim-1dab8ba334a1b53f3c8780bc8a4f8045a6ea0375.tar.gz |
move threads out of system (#20674)
* move syslocks first * progress * clean up * go on * clean up * clean up * add imports syslocks * remove documentation * public deallocOsPages * fixes genode * fixes more * fixes boehmGC * cover more cases * fixes cyclic deps * fixes genode * cleanup * unpublic fields * cleanup * clean up
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/locks.nim | 3 | ||||
-rw-r--r-- | lib/core/rlocks.nim | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/core/locks.nim b/lib/core/locks.nim index 92967b9db..ad0bff44d 100644 --- a/lib/core/locks.nim +++ b/lib/core/locks.nim @@ -18,8 +18,7 @@ when not compileOption("threads") and not defined(nimdoc): when false: # fix #12330 {.error: "Locks requires --threads:on option.".} -const insideRLocksModule = false -include "system/syslocks" +import std/private/syslocks type Lock* = SysLock ## Nim lock; whether this is re-entrant diff --git a/lib/core/rlocks.nim b/lib/core/rlocks.nim index 0444b9a83..bee5c1655 100644 --- a/lib/core/rlocks.nim +++ b/lib/core/rlocks.nim @@ -16,8 +16,7 @@ when not compileOption("threads") and not defined(nimdoc): # so they can replace each other seamlessly. {.error: "Rlocks requires --threads:on option.".} -const insideRLocksModule = true -include "system/syslocks" +import std/private/syslocks type RLock* = SysLock ## Nim lock, re-entrant |