summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-06-08 05:39:37 +0200
committerbunnei <bunneidev@gmail.com>2015-06-17 04:34:39 +0200
commit71e8822d23c030311858e6fcc8480b9c52f13f39 (patch)
tree0a5f53cbcebc2c98c7c9c224cbc1a91c1b783366 /src/core/hle/kernel/mutex.cpp
parentMerge pull request #866 from lioncash/typo (diff)
downloadyuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar
yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.gz
yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.bz2
yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.lz
yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.xz
yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.zst
yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.zip
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
-rw-r--r--src/core/hle/kernel/mutex.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index 6aa73df86..edb97d324 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -23,12 +23,7 @@ static void ResumeWaitingThread(Mutex* mutex) {
// Reset mutex lock thread handle, nothing is waiting
mutex->lock_count = 0;
mutex->holding_thread = nullptr;
-
- // Find the next waiting thread for the mutex...
- auto next_thread = mutex->WakeupNextThread();
- if (next_thread != nullptr) {
- mutex->Acquire(next_thread);
- }
+ mutex->WakeupAllWaitingThreads();
}
void ReleaseThreadMutexes(Thread* thread) {
@@ -94,8 +89,6 @@ void Mutex::Release() {
ResumeWaitingThread(this);
}
}
-
- HLE::Reschedule(__func__);
}
} // namespace