blob: 732d6f325a351bb465c07f01ba2efd4f6add0f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "frame_span.hh"
namespace low_latency {
FrameSpan::FrameSpan(std::shared_ptr<TimestampPool::Handle> handle)
: head_handle(std::move(handle)) {
assert(this->head_handle); // Must not be null
}
FrameSpan::~FrameSpan() {}
void FrameSpan::update(std::shared_ptr<TimestampPool::Handle> handle) {
this->tail_handle = std::move(handle);
}
void FrameSpan::await_completed() const {
if (this->tail_handle) {
this->tail_handle->await_end();
return;
}
this->head_handle->await_end();
}
} // namespace low_latency
|