Add missing (unlock) to restart-thread.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sat, 11 Jul 2015 00:24:20 +0000 (17:24 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sat, 11 Jul 2015 00:24:20 +0000 (17:24 -0700)
src/runtime/thread.scm

index e2f3f442f49d1a41cc61af593947235190f22c78..99da9083be8bc8c6bc1b6d56a51405e56d053293 100644 (file)
@@ -385,7 +385,8 @@ USA.
              (ring/discard-all (thread/pending-events thread)))
          (if event
              (%signal-thread-event thread event))
-         (thread-running thread)))))
+         (thread-running thread)
+         (unlock)))))
 \f
 (define (disallow-preempt-current-thread)
   (set-thread/execution-state! (current-thread) 'RUNNING-WITHOUT-PREEMPTION))