aboutsummaryrefslogtreecommitdiff
path: root/src/queue_context.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-04-01 00:49:34 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-04-01 00:49:34 +1100
commit31c69428639c0674339c3752c5401542d38693bc (patch)
treee5d215ffbbe6ec0630aaadef6afa218cd6f60a21 /src/queue_context.hh
parentaa3dbff2342a4d698c10a5fd816904de01b03605 (diff)
Turn shared_ptr to unique_ptr in Context, strictly transfer ownership in notify_present
Diffstat (limited to 'src/queue_context.hh')
-rw-r--r--src/queue_context.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue_context.hh b/src/queue_context.hh
index 2abd44c..326ee79 100644
--- a/src/queue_context.hh
+++ b/src/queue_context.hh
@@ -99,8 +99,8 @@ class QueueContext final : public Context {
};
using present_id_t = std::uint64_t;
- using submissions_ptr_t = std::shared_ptr<Submissions>;
- std::unordered_map<present_id_t, submissions_ptr_t> unpresented_submissions;
+ std::unordered_map<present_id_t, std::unique_ptr<Submissions>>
+ unpresented_submissions;
// We might be tracking present_ids which aren't presented to - and as a
// result we don't ever clear those Submissions. So manually evict them by