From 65623d72e0b67556b13fad50814cd680994d57f9 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 26 Feb 2019 18:02:26 -0500 Subject: parallel & serial processing logic --- src/doc_reform/doc_reform.d | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/doc_reform/doc_reform.d') diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d index fc93a6c..bac1f44 100755 --- a/src/doc_reform/doc_reform.d +++ b/src/doc_reform/doc_reform.d @@ -319,10 +319,21 @@ void main(string[] args) { } auto parallelise() { bool _is; - if (opts["parallel"] == true - || (opts["parallel"] != false && opts["serial"] == false)) { + if (opts["parallel"] == true) { _is = true; if (sqlite_shared_db_action) { _is = false; } + } else if (opts["parallel"] == false + && opts["serial"] == true) { + _is = false; + } else if (opts["abstraction"] + || concordance + || epub + || html + || manifest + || pod + || source + ) { + _is = true; } else { _is = false; } return _is; } -- cgit v1.2.3