From 76f3ef1d7c2b4393a8e8b402deb924e606448d27 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 11 Feb 2026 23:19:15 +1100 Subject: More cleanup, fix lifetime and mutex issues --- src/timestamp_pool.hh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/timestamp_pool.hh') diff --git a/src/timestamp_pool.hh b/src/timestamp_pool.hh index 82c4721..cc67b18 100644 --- a/src/timestamp_pool.hh +++ b/src/timestamp_pool.hh @@ -69,18 +69,18 @@ class TimestampPool final { public: // A handle represents two std::uint64_t blocks of timestamp memory and two // command buffers. - struct Handle { + struct Handle final { private: friend class TimestampPool; private: available_query_indicies_t& index_origin; - std::size_t block_index; + const std::size_t block_index; public: - VkQueryPool query_pool; - std::uint64_t query_index; - std::array command_buffers; + const VkQueryPool query_pool; + const std::uint64_t query_index; + const std::array command_buffers; public: Handle(TimestampPool::available_query_indicies_t& index_origin, @@ -89,8 +89,8 @@ class TimestampPool final { const std::array& command_buffers); Handle(const Handle& handle) = delete; Handle(Handle&&) = delete; - Handle operator==(const Handle& handle) = delete; - Handle operator==(Handle&&) = delete; + Handle operator=(const Handle& handle) = delete; + Handle operator=(Handle&&) = delete; ~Handle(); // frees from the pool public: @@ -104,8 +104,8 @@ class TimestampPool final { TimestampPool(QueueContext& queue_context); TimestampPool(const TimestampPool&) = delete; TimestampPool(TimestampPool&&) = delete; - TimestampPool operator==(const TimestampPool&) = delete; - TimestampPool operator==(TimestampPool&&) = delete; + TimestampPool operator=(const TimestampPool&) = delete; + TimestampPool operator=(TimestampPool&&) = delete; ~TimestampPool(); public: -- cgit v1.2.3