utils: phased_barrier: add operations_in_progress()
Allows querying the number of operations in-flight in the current phase.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user