Add type-checking to thread-dead?.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sat, 11 Jul 2015 19:32:52 +0000 (12:32 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sat, 11 Jul 2015 19:32:52 +0000 (12:32 -0700)
src/runtime/thread.scm

index 91ac09d5add6f1a189d87910a0f5e8740fd7b47c..3204e384152b65d3ee667f6f14ffcd065f69f180 100644 (file)
@@ -203,7 +203,8 @@ USA.
 (define no-exit-value-marker
   (list 'NO-EXIT-VALUE-MARKER))
 
-(define-integrable (thread-dead? thread)
+(define (thread-dead? thread)
+  (guarantee-thread thread 'THREAD-DEAD?)
   (eq? 'DEAD (thread/execution-state thread)))
 \f
 (define thread-population)