directory-channel/descriptor
set-directory-channel/descriptor!))
(initialize-select-registry!)
- (set! dld-handles '())
+ (reset-dld-handles!)
+ (add-event-receiver! event:after-restore reset-dld-handles!)
unspecific)
(define-structure (channel (constructor %make-channel))
\f
(define dld-handles)
+(define (reset-dld-handles!)
+ (set! dld-handles '())
+ unspecific)
+
(define (dld-unload-file handle)
(guarantee-dld-handle handle 'DLD-UNLOAD-FILE)
(without-interrupts
(find-matching-item dld-handles predicate))
(define (all-dld-handles)
- (list-copy dld-handles))
-
-(define (unload-all-dld-object-files)
- (without-interrupts
- (lambda ()
- (let loop ()
- (if (pair? dld-handles)
- (let ((handle (car dld-handles)))
- (set! dld-handles (cdr dld-handles))
- (%dld-unload-file handle)
- (loop)))))))
\ No newline at end of file
+ (list-copy dld-handles))
\ No newline at end of file