mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 10:52:53 +00:00
Merge pull request #794 from lioncash/ref
mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference
This commit is contained in:
commit
d092ea0870
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue