Skip to content

Commit

Permalink
fix leorize's lame musls (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek authored Jun 9, 2021
1 parent 5a0346c commit 2208c5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions balls/spec.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2208c5c

Please sign in to comment.