freezer: Move entry finding to its own function
Cleans up the callsites in other functions.
This commit is contained in:
parent
06ab28263b
commit
61cd7eb47d
2 changed files with 21 additions and 12 deletions
|
@ -73,13 +73,18 @@ public:
|
|||
std::vector<Entry> GetEntries() const;
|
||||
|
||||
private:
|
||||
using Entries = std::vector<Entry>;
|
||||
|
||||
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<Entry> entries;
|
||||
Entries entries;
|
||||
|
||||
std::shared_ptr<Core::Timing::EventType> event;
|
||||
Core::Timing::CoreTiming& core_timing;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue