thread: custodian shutdown of current suspend-to-kill thread
This commit is contained in:
parent
b57b9be2f8
commit
e60a78aad9
|
@ -332,7 +332,8 @@
|
||||||
;; Check whether the current thread was terminated
|
;; Check whether the current thread was terminated
|
||||||
(let ([t (current-thread)])
|
(let ([t (current-thread)])
|
||||||
(when t ; in case custodians used (for testing) without threads
|
(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))
|
(engine-block))
|
||||||
(check-for-break-after-kill))))))
|
(check-for-break-after-kill))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user