diff --git a/balls/spec.nim b/balls/spec.nim index 7d678cb..6d2809c 100644 --- a/balls/spec.nim +++ b/balls/spec.nim @@ -156,11 +156,10 @@ proc flushStderr*() {.noconv, used.} = when compileOption"threads": import std/rlocks var clobber {.global.}: RLock + initRLock clobber template noclobber*(body: untyped) = ## serialize access to the body; usually for output reasons - once: - initRLock clobber withRLock clobber: body else: