thread: custodian shutdown of current suspend-to-kill thread

This commit is contained in:
Matthew Flatt 2018-10-05 20:53:38 -06:00
parent b57b9be2f8
commit e60a78aad9

View File

@ -332,7 +332,8 @@
;; Check whether the current thread was terminated
(let ([t (current-thread)])
(when t ; in case custodians used (for testing) without threads
(when (thread-dead? t)
(when (or (thread-dead? t)
(null? (thread-custodian-references t)))
(engine-block))
(check-for-break-after-kill))))))