Skip to content
Snippets Groups Projects
Unverified Commit d092ea08 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #794 from lioncash/ref

mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference
parents b70f7579 42b5158c
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ namespace Kernel {
/// Returns the number of threads that are waiting for a mutex, and the highest priority one among
/// those.
static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread(
SharedPtr<Thread> current_thread, VAddr mutex_addr) {
const SharedPtr<Thread>& current_thread, VAddr mutex_addr) {
SharedPtr<Thread> highest_priority_thread;
u32 num_waiters = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment