Browse Source
Merge pull request #794 from lioncash/ref
mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference
pull/15/merge
bunnei
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/core/hle/kernel/mutex.cpp
|
|
@ -19,7 +19,7 @@ namespace Kernel { |
|
|
/// Returns the number of threads that are waiting for a mutex, and the highest priority one among
|
|
|
/// Returns the number of threads that are waiting for a mutex, and the highest priority one among
|
|
|
/// those.
|
|
|
/// those.
|
|
|
static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread( |
|
|
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; |
|
|
SharedPtr<Thread> highest_priority_thread; |
|
|
u32 num_waiters = 0; |
|
|
u32 num_waiters = 0; |
|
|
|