Megatest

Diff
Login

Differences From Artifact [8bf15b5849]:

To Artifact [7529d3d14d]:


2653
2654
2655
2656
2657
2658
2659



2660

2661

(define (common:join-backgrounded-threads)
  ;; may need to trap and ignore exceptions -- dunno how atomic threads are...
  (for-each
   (lambda (thread-name)
     (let* ((thread (hash-table-ref/default *common:thread-punchlist* thread-name #f)))
       (if thread



           (thread-join! thread))))

   (hash-table-keys *common:thread-punchlist*)))







>
>
>
|
>

2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665

(define (common:join-backgrounded-threads)
  ;; may need to trap and ignore exceptions -- dunno how atomic threads are...
  (for-each
   (lambda (thread-name)
     (let* ((thread (hash-table-ref/default *common:thread-punchlist* thread-name #f)))
       (if thread
           (handle-exceptions
           exn
           #t ;; just ignore it, it might have died in the meantime so joining it will throw an exception
           (thread-join! thread))
           )))
   (hash-table-keys *common:thread-punchlist*)))