cs & threads: run post-custodian shutdown actions on place exit

This commit is contained in:
Matthew Flatt 2019-05-01 13:22:47 -06:00
parent 193bec6b7d
commit cfeef54a28

View File

@ -109,6 +109,8 @@
;; Place is done, so save the result and alert anyone waiting on
;; the place
(do-custodian-shutdown-all orig-cust)
(for ([proc (in-list (place-post-shutdown new-place))])
(proc))
(host:mutex-acquire lock)
(set-place-result! new-place result)
(host:mutex-release lock)