fix indentation
This commit is contained in:
parent
8aca195b35
commit
4d7584d9b7
|
@ -23,7 +23,8 @@
|
||||||
; (begin a ...)
|
; (begin a ...)
|
||||||
)
|
)
|
||||||
|
|
||||||
(define lock-manager% (class object%
|
(define lock-manager%
|
||||||
|
(class object%
|
||||||
(field (locks (make-hash)))
|
(field (locks (make-hash)))
|
||||||
(define/public (lock fn wrkr)
|
(define/public (lock fn wrkr)
|
||||||
(let ([v (hash-ref locks fn #f)])
|
(let ([v (hash-ref locks fn #f)])
|
||||||
|
@ -50,7 +51,8 @@
|
||||||
(cond [(path? x) (path->bytes x)]
|
(cond [(path? x) (path->bytes x)]
|
||||||
[(string? x) (string->bytes/locale x)]))
|
[(string? x) (string->bytes/locale x)]))
|
||||||
|
|
||||||
(define collects-queue% (class* object% (work-queue<%>)
|
(define collects-queue%
|
||||||
|
(class* object% (work-queue<%>)
|
||||||
(init-field cclst printer append-error)
|
(init-field cclst printer append-error)
|
||||||
(field (lock-mgr (new lock-manager%)))
|
(field (lock-mgr (new lock-manager%)))
|
||||||
(field (hash (make-hash)))
|
(field (hash (make-hash)))
|
||||||
|
@ -164,7 +166,8 @@
|
||||||
(define/public (get-results) (void))
|
(define/public (get-results) (void))
|
||||||
(super-new)))
|
(super-new)))
|
||||||
|
|
||||||
(define file-list-queue% (class* object% (work-queue<%>)
|
(define file-list-queue%
|
||||||
|
(class* object% (work-queue<%>)
|
||||||
(init-field filelist handler)
|
(init-field filelist handler)
|
||||||
(field (lock-mgr (new lock-manager%)))
|
(field (lock-mgr (new lock-manager%)))
|
||||||
(inspect #f)
|
(inspect #f)
|
||||||
|
|
|
@ -58,7 +58,8 @@
|
||||||
get-id
|
get-id
|
||||||
get-out))
|
get-out))
|
||||||
|
|
||||||
(define worker% (class* object% (worker<%>)
|
(define worker%
|
||||||
|
(class* object% (worker<%>)
|
||||||
(field [id 0]
|
(field [id 0]
|
||||||
[process-handle null]
|
[process-handle null]
|
||||||
[out null]
|
[out null]
|
||||||
|
@ -110,7 +111,8 @@
|
||||||
(define/public (wait) (subprocess-wait process-handle))
|
(define/public (wait) (subprocess-wait process-handle))
|
||||||
(super-new)))
|
(super-new)))
|
||||||
|
|
||||||
(define place-worker% (class* object% (worker<%>)
|
(define place-worker%
|
||||||
|
(class* object% (worker<%>)
|
||||||
(init-field [id 0]
|
(init-field [id 0]
|
||||||
[pl null])
|
[pl null])
|
||||||
|
|
||||||
|
@ -134,7 +136,7 @@
|
||||||
(super-new)))
|
(super-new)))
|
||||||
|
|
||||||
|
|
||||||
(define work-queue<%> (interface ()
|
(define work-queue<%> (interface ()
|
||||||
get-job
|
get-job
|
||||||
work-done
|
work-done
|
||||||
has-jobs?
|
has-jobs?
|
||||||
|
@ -260,7 +262,8 @@
|
||||||
;(printf " ~a" (add1 i)) (flush-output))(printf "\n")
|
;(printf " ~a" (add1 i)) (flush-output))(printf "\n")
|
||||||
)]))))
|
)]))))
|
||||||
|
|
||||||
(define list-queue% (class* object% (work-queue<%>)
|
(define list-queue%
|
||||||
|
(class* object% (work-queue<%>)
|
||||||
(init-field queue create-job-thunk success-thunk failure-thunk)
|
(init-field queue create-job-thunk success-thunk failure-thunk)
|
||||||
(field [results null])
|
(field [results null])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user