utils: phased_barrier: add operations_in_progress()

Allows querying the number of operations in-flight in the current phase.
This commit is contained in:
Botond Dénes
2020-11-10 10:36:28 +02:00
parent f097bf3005
commit f69942424d

View File

@@ -80,6 +80,11 @@ public:
phase_type phase() const {
return _phase;
}
// Number of operations in current phase.
size_t operations_in_progress() const {
return _gate->get_count();
}
};
}