aboutsummaryrefslogtreecommitdiff
path: root/src/timestamp_pool.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-11 23:19:15 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-11 23:19:15 +1100
commit76f3ef1d7c2b4393a8e8b402deb924e606448d27 (patch)
treea291bec0544f007536a41ec1f590338aee1163e9 /src/timestamp_pool.hh
parent77e2be172718878b38999efc247ce7571435fcc8 (diff)
More cleanup, fix lifetime and mutex issues
Diffstat (limited to 'src/timestamp_pool.hh')
-rw-r--r--src/timestamp_pool.hh18
1 files changed, 9 insertions, 9 deletions
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<VkCommandBuffer, 2> command_buffers;
+ const VkQueryPool query_pool;
+ const std::uint64_t query_index;
+ const std::array<VkCommandBuffer, 2> command_buffers;
public:
Handle(TimestampPool::available_query_indicies_t& index_origin,
@@ -89,8 +89,8 @@ class TimestampPool final {
const std::array<VkCommandBuffer, 2>& 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: