AsyncLoop: Add setRemainingIterationsToFailure
This commit is contained in:
@@ -54,6 +54,11 @@ public:
|
||||
return nTotal == 0;
|
||||
}
|
||||
|
||||
void setRemainingIterationsToFailure()
|
||||
{
|
||||
nFailed.store(nTotal - nSucceeded.load());
|
||||
}
|
||||
|
||||
public:
|
||||
unsigned int nTotal;
|
||||
std::atomic<unsigned int> nSucceeded, nFailed;
|
||||
|
||||
Reference in New Issue
Block a user