diff --git a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp index be77805ae..ed2e44a0a 100644 --- a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp +++ b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp @@ -102,7 +102,7 @@ std::vector multiSlsDetector::parallelCall(RT (slsDetector::*somefunc)(CT... { std::vector> futures; for (size_t idet = 0; idet < detectors.size(); ++idet) { - futures.push_back(std::async(somefunc, (*this)[idet], Args...)); + futures.push_back(std::async(std::launch::async, somefunc, (*this)[idet], Args...)); /* if ((*this)[idet]->getErrorMask()) setErrorMask(getErrorMask() | (1 << idet));