Skip to content

Commit

Permalink
Added .gcsafe. to wakeupAll, fixes cheatfate#22
Browse files Browse the repository at this point in the history
  • Loading branch information
zevv authored and Sylonin committed Apr 21, 2021
1 parent 9d9804d commit 482316b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asynctools/asyncsync.nim
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ proc fire*(event: AsyncEv) =
## Set the internal flag of ``event`` to `true`. All tasks waiting for it
## to become `true` are awakened. Task that call `wait()` once the flag is
## `true` will not block at all.
proc wakeupAll() =
proc wakeupAll() {.gcsafe.} =
if len(event.waiters) > 0:
var w = event.waiters.popFirst()
if not w.finished:
Expand Down

0 comments on commit 482316b

Please sign in to comment.