From 972d5fc9dbf63adb8f8f9ff0f3e47aeadd444b7e Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Thu, 13 Nov 2025 20:52:08 -0400 Subject: [PATCH] AsyncLoop: Add setRemainingIterationsToFailure --- include/asynchronousLoop.h | 5 +++++ 1 file changed, 5 insertions(+) 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;