Execution abstraction and build fix for linux and mac

This commit is contained in:
tamasmeszaros 2018-06-27 18:23:53 +02:00
parent d337b69407
commit 8497289650
4 changed files with 26 additions and 2 deletions

View file

@ -318,7 +318,9 @@ void PrintController::slice_to_png()
report_issue(IssueType::WARN, ss.str(), "Warning");
}
std::async(std::launch::async, [this, exd]() {
std::async(supports_asynch()? std::launch::async : std::launch::deferred,
[this, exd]()
{
progress_indicator(100, "Slicing to zipped png files...");
progress_indicator()->procedure_count(3);