AsyncLoop: Add test for zero-iteration loops

This mnemonically ensures that we'll remember to check for
these kinds of async loops.
This commit is contained in:
2025-09-11 20:08:35 -04:00
parent fb17c51ef6
commit 89947dfc71
2 changed files with 17 additions and 0 deletions
+5
View File
@@ -33,6 +33,11 @@ public:
return isComplete();
}
bool nTotalIsZero(void) const
{
return nTotal == 0;
}
public:
const unsigned int nTotal;
std::atomic<unsigned int> nSucceeded, nFailed;