summary refs log tree commit diff stats
path: root/lib/system/sysspawn.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/sysspawn.nim')
-rw-r--r--lib/system/sysspawn.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system/sysspawn.nim b/lib/system/sysspawn.nim
index 0a56d6844..93a39fa79 100644
--- a/lib/system/sysspawn.nim
+++ b/lib/system/sysspawn.nim
@@ -121,6 +121,7 @@ proc slave(w: ptr Worker) {.thread.} =
     signal(gSomeReady)
     await(w.taskArrived)
     assert(not w.ready)
+    # shield against spurious wakeups:
     if w.data != nil:
       w.f(w, w.data)
       w.data = nil