Use worker-count for doc build
This commit is contained in:
parent
1b0fdfd0a9
commit
264e7f2c15
|
@ -227,7 +227,7 @@
|
|||
|
||||
(define-syntax (parallel-do stx)
|
||||
(syntax-case stx ()
|
||||
[(_ initalmsg list-of-work create-job-thunk job-success-thunk job-failure-thunk workerthunk)
|
||||
[(_ worker-count initalmsg list-of-work create-job-thunk job-success-thunk job-failure-thunk workerthunk)
|
||||
(begin
|
||||
(define (gen-parallel-do-event-loop-syntax cmdline initial-stdin-data)
|
||||
(with-syntax ([cmdline cmdline]
|
||||
|
@ -236,7 +236,7 @@
|
|||
;(printf "CMDLINE ~v\n" cmdline)
|
||||
;(printf "INITIALTHUNK ~v\n" initial-stdin-data)
|
||||
(let ([jobqueue (make-list-queue list-of-work null create-job-thunk job-success-thunk job-failure-thunk)])
|
||||
(parallel-do-event-loop initial-stdin-data initalmsg cmdline jobqueue (processor-count) 999999999)
|
||||
(parallel-do-event-loop initial-stdin-data initalmsg cmdline jobqueue worker-count 999999999)
|
||||
(reverse (list-queue-results jobqueue))))))
|
||||
(define (gen-dynamic-require-current-module funcname)
|
||||
(with-syntax ([funcname funcname])
|
||||
|
|
|
@ -134,6 +134,7 @@
|
|||
(if (not (worker-count . > . 1))
|
||||
(map (get-doc-info only-dirs latex-dest auto-main? auto-user? with-record-error setup-printf) docs)
|
||||
(parallel-do
|
||||
worker-count
|
||||
(lambda (workerid) (list workerid program-name (verbose) only-dirs latex-dest auto-main? auto-user?))
|
||||
docs
|
||||
(lambda (x) (s-exp->fasl (serialize x)))
|
||||
|
@ -315,6 +316,7 @@
|
|||
(say-rendering i)
|
||||
(update-info i (build-again! latex-dest i with-record-error))) need-rerun)
|
||||
(parallel-do
|
||||
worker-count
|
||||
(lambda (workerid) (list workerid (verbose) latex-dest))
|
||||
need-rerun
|
||||
(lambda (i)
|
||||
|
|
Loading…
Reference in New Issue
Block a user