diff --git a/utils/phased_barrier.hh b/utils/phased_barrier.hh index bbeac3f146..d56dead9dc 100644 --- a/utils/phased_barrier.hh +++ b/utils/phased_barrier.hh @@ -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(); + } }; }