uncurry LOAD-SURFLET in GET-SURFLET-RT-STRUCTURE
This commit is contained in:
parent
26fa1ca033
commit
e934340fb5
|
@ -439,10 +439,9 @@
|
|||
;; Returns SUrflet's RT-STRUCTURE indicated by SURFLET-NAME (a virtual
|
||||
;; path string) while managing the SUrflet cache *SURFLET-TABLE*
|
||||
;; (locking).
|
||||
(define (get-surflet-rt-structure surflet-name directory)
|
||||
(let* ((full-surflet-name (absolute-file-name surflet-name directory))
|
||||
(load-surflet
|
||||
(lambda (cached?)
|
||||
(define get-surflet-rt-structure
|
||||
(let ((load-surflet
|
||||
(lambda (full-surflet-name cached?)
|
||||
(with-fatal-handler*
|
||||
(lambda (condition decline)
|
||||
(if cached? (release-lock *surflet-table-lock*))
|
||||
|
@ -462,6 +461,9 @@
|
|||
;; only now the lock may be released
|
||||
(release-lock *surflet-table-lock*)))
|
||||
surflet-structure))))))
|
||||
|
||||
(lambda (surflet-name directory)
|
||||
(let ((full-surflet-name (absolute-file-name surflet-name directory)))
|
||||
(if (options-cache-surflets?)
|
||||
(begin
|
||||
;; The lock is only obtained and released, if surflets are
|
||||
|
@ -476,9 +478,9 @@
|
|||
(begin
|
||||
(release-lock *surflet-table-lock*)
|
||||
(car surflet))
|
||||
(load-surflet #t))
|
||||
(load-surflet #t))))
|
||||
(load-surflet #f))))
|
||||
(load-surflet full-surflet-name #t))
|
||||
(load-surflet full-surflet-name #t))))
|
||||
(load-surflet full-surflet-name #f))))))
|
||||
|
||||
;;; GET-LOADED-SURFLETS
|
||||
;; Returns list of all loaded surflets (real path strings).
|
||||
|
|
Loading…
Reference in New Issue