diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-02-01 02:26:16 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-02-02 18:37:08 +0100 |
commit | 52f58e64efbf43c114f701eb8f39fb463138ffb8 (patch) | |
tree | eb40cc649b524febe841e463d6de7bce025a8105 /src/core/hle/kernel/mutex.cpp | |
parent | Explicitly instantiate constructors/destructors for Kernel objects (diff) | |
download | yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.tar yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.tar.gz yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.tar.bz2 yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.tar.lz yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.tar.xz yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.tar.zst yuzu-52f58e64efbf43c114f701eb8f39fb463138ffb8.zip |
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
-rw-r--r-- | src/core/hle/kernel/mutex.cpp | 4 |
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() { Acquire(GetCurrentThread()); } -void Mutex::Acquire(Thread* thread) { +void Mutex::Acquire(SharedPtr<Thread> thread) { _assert_msg_(Kernel, !ShouldWait(), "object unavailable!"); if (locked) return; @@ -74,7 +74,7 @@ void Mutex::Acquire(Thread* thread) { locked = true; thread->held_mutexes.insert(this); - holding_thread = thread; + holding_thread = std::move(thread); } void Mutex::Release() { |