aboutsummaryrefslogtreecommitdiff
path: root/src/timestamp_pool.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-13 18:21:04 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-13 18:21:04 +1100
commit8f4501215c0dbbbde59da2d015fdec3dbe5131bc (patch)
treeac7e4b58309adb26e621c776f97fa8f08e608f04 /src/timestamp_pool.hh
parent76f3ef1d7c2b4393a8e8b402deb924e606448d27 (diff)
add working frame tracking and commit before i break everything
Diffstat (limited to 'src/timestamp_pool.hh')
-rw-r--r--src/timestamp_pool.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timestamp_pool.hh b/src/timestamp_pool.hh
index cc67b18..a4aa429 100644
--- a/src/timestamp_pool.hh
+++ b/src/timestamp_pool.hh
@@ -67,7 +67,7 @@ class TimestampPool final {
std::vector<std::unique_ptr<std::vector<std::uint64_t>>> cached_timestamps;
public:
- // A handle represents two std::uint64_t blocks of timestamp memory and two
+ // A handle represents two std::uint64_t blocks oftimestamp memory and two
// command buffers.
struct Handle final {
private:
@@ -110,11 +110,11 @@ class TimestampPool final {
public:
// Hands out a Handle with a pool and index of two uint64_t's.
- std::unique_ptr<Handle> acquire();
+ std::shared_ptr<Handle> acquire();
void poll(); // saves the current state for future get's.
- std::uint64_t get_polled(const Handle& handle);
+ std::uint64_t get_polled(const Handle& handle, const bool hack = false);
};
} // namespace low_latency