aboutsummaryrefslogtreecommitdiff
path: root/src/frame_span.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame_span.cc')
-rw-r--r--src/frame_span.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frame_span.cc b/src/frame_span.cc
index 732d6f3..8764aa1 100644
--- a/src/frame_span.cc
+++ b/src/frame_span.cc
@@ -21,4 +21,11 @@ void FrameSpan::await_completed() const {
this->head_handle->await_end();
}
+bool FrameSpan::has_completed() const {
+ if (this->tail_handle) {
+ return this->tail_handle->has_end();
+ }
+ return this->head_handle->has_end();
+}
+
} // namespace low_latency \ No newline at end of file