alternative to #18185 (#18206)

This commit is contained in:
flywind 2021-06-07 21:32:37 +08:00 • committed by GitHub
commit 5bad022d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,10 @@
when not compileOption("threads") and not defined(nimdoc): 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 const insideRLocksModule = true
include "system/syslocks" include "system/syslocks"