diff --git a/include/asynchronousLoop.h b/include/asynchronousLoop.h index 2f5a685..6db5dd8 100644 --- a/include/asynchronousLoop.h +++ b/include/asynchronousLoop.h @@ -54,6 +54,11 @@ public: return nTotal == 0; } + void setRemainingIterationsToFailure() + { + nFailed.store(nTotal - nSucceeded.load()); + } + public: unsigned int nTotal; std::atomic nSucceeded, nFailed;