summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
-rw-r--r--src/core/hle/kernel/mutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index c6ad5ca91..7c634f9bd 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -66,7 +66,7 @@ void Mutex::Acquire() {
66 Acquire(GetCurrentThread()); 66 Acquire(GetCurrentThread());
67} 67}
68 68
69void Mutex::Acquire(Thread* thread) { 69void Mutex::Acquire(SharedPtr<Thread> thread) {
70 _assert_msg_(Kernel, !ShouldWait(), "object unavailable!"); 70 _assert_msg_(Kernel, !ShouldWait(), "object unavailable!");
71 if (locked) 71 if (locked)
72 return; 72 return;
@@ -74,7 +74,7 @@ void Mutex::Acquire(Thread* thread) {
74 locked = true; 74 locked = true;
75 75
76 thread->held_mutexes.insert(this); 76 thread->held_mutexes.insert(this);
77 holding_thread = thread; 77 holding_thread = std::move(thread);
78} 78}
79 79
80void Mutex::Release() { 80void Mutex::Release() {