Skip to content

Commit

Permalink
no need to workaround nim-lang/Nim#14370 anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Jun 26, 2020
1 parent 9f0c384 commit af869e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions weave/executor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ proc runInBackground*(thr: var Thread[void], _: typedesc[Weave]) =
proc eventLoop() {.thread.} =
init(Weave)
Weave.runForever()
{.gcsafe.}: # Workaround regression - https://github.com/nim-lang/Nim/issues/14370
thr.createThread(eventLoop)
thr.createThread(eventLoop)

proc submitJob*(job: sink Job) =
## Submit a serialized job to a worker at random
Expand Down

0 comments on commit af869e4

Please sign in to comment.