address_arbiter: Simplify GetThreadsWaitingOnAddress()

Simplifies the overall function and also allows for it to become a
const-qualified member function.
This commit is contained in:
Lioncash 2020-02-12 15:07:15 -05:00
parent 3184bdd36c
commit 3105b7864c
2 changed files with 9 additions and 10 deletions

View file

@ -86,7 +86,7 @@ private:
void RemoveThread(std::shared_ptr<Thread> thread);
// Gets the threads waiting on an address.
std::vector<std::shared_ptr<Thread>> GetThreadsWaitingOnAddress(VAddr address);
std::vector<std::shared_ptr<Thread>> GetThreadsWaitingOnAddress(VAddr address) const;
/// List of threads waiting for a address arbiter
std::unordered_map<VAddr, std::list<std::shared_ptr<Thread>>> arb_threads;