diff options
author | flywind <xzsflywind@gmail.com> | 2021-06-07 21:32:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 15:32:37 +0200 |
commit | 5bad022d58e21f0da455fbd7d421cd26a2b5c812 (patch) | |
tree | 58a18e9c3978068925a01ac5acee67a71b193dd2 /lib/core | |
parent | 429b1286325e7b6cf86ed4e29cea3e11a8c0e2df (diff) | |
download | Nim-5bad022d58e21f0da455fbd7d421cd26a2b5c812.tar.gz |
alternative to #18185 (#18206)
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/rlocks.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/core/rlocks.nim b/lib/core/rlocks.nim index 5f155262a..a1ee0a6ec 100644 --- a/lib/core/rlocks.nim +++ b/lib/core/rlocks.nim @@ -11,7 +11,10 @@ when not compileOption("threads") and not defined(nimdoc): - {.error: "Rlocks requires --threads:on option.".} + when false: + # make rlocks modlue consistent with locks module, + # so they can replace each other seamlessly. + {.error: "Rlocks requires --threads:on option.".} const insideRLocksModule = true include "system/syslocks" |