From 61cd7eb47d947bd332ea306e74a1491c42854a61 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 6 Aug 2020 03:11:19 -0400 Subject: freezer: Move entry finding to its own function Cleans up the callsites in other functions. --- src/core/tools/freezer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/tools/freezer.h') diff --git a/src/core/tools/freezer.h b/src/core/tools/freezer.h index 2b2326bc4..0fdb701a7 100644 --- a/src/core/tools/freezer.h +++ b/src/core/tools/freezer.h @@ -73,13 +73,18 @@ public: std::vector GetEntries() const; private: + using Entries = std::vector; + + Entries::iterator FindEntry(VAddr address); + Entries::const_iterator FindEntry(VAddr address) const; + void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late); void FillEntryReads(); std::atomic_bool active{false}; mutable std::mutex entries_mutex; - std::vector entries; + Entries entries; std::shared_ptr event; Core::Timing::CoreTiming& core_timing; -- cgit v1.2.3