make-jobd now takes an optarg: jobd-vers
This commit is contained in:
parent
c0ece4c94b
commit
cafba717cf
18
jobd.scm
18
jobd.scm
|
@ -78,14 +78,16 @@
|
||||||
|
|
||||||
(define jobd-vers "jobd-0.0.1")
|
(define jobd-vers "jobd-0.0.1")
|
||||||
|
|
||||||
(define (make-jobd)
|
(define (make-jobd . maybe-args)
|
||||||
(let* ((version jobd-vers)
|
(let-optionals maybe-args ((jobd-vers "jobd-0.0.1"))
|
||||||
(job-ch (cml-async-ch/make-async-channel))
|
(let* ((version jobd-vers)
|
||||||
(sig-m-ch (cml-mcast-ch/make-mcast-channel))
|
(job-ch (cml-async-ch/make-async-channel))
|
||||||
(start-jobber (lambda (id)
|
(sig-m-ch (cml-mcast-ch/make-mcast-channel))
|
||||||
(jobber id job-ch (cml-mcast-ch/mcast-port sig-m-ch)))))
|
(start-jobber (lambda (id)
|
||||||
(for-each start-jobber (enumerate jobbers))
|
(let ((new-mport (cml-mcast-ch/mcast-port sig-m-ch)))
|
||||||
(really-make-jobd version job-ch sig-m-ch)))
|
(jobber id job-ch new-mport)))))
|
||||||
|
(for-each start-jobber (enumerate jobbers))
|
||||||
|
(really-make-jobd version job-ch sig-m-ch))))
|
||||||
|
|
||||||
(define (version jobd)
|
(define (version jobd)
|
||||||
(jobd-version-s jobd))
|
(jobd-version-s jobd))
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
(define-structure jobd jobd-interface
|
(define-structure jobd jobd-interface
|
||||||
(open scheme-with-scsh
|
(open scheme-with-scsh
|
||||||
|
let-opt
|
||||||
formats
|
formats
|
||||||
srfi-1
|
srfi-1
|
||||||
(with-prefix srfi-8 srfi-8/)
|
(with-prefix srfi-8 srfi-8/)
|
||||||
|
|
Loading…
Reference in New Issue