summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-06-18 00:07:15 +0200
committerbunnei <bunneidev@gmail.com>2015-06-18 00:07:15 +0200
commit2e16edbc56c51265250269dd2d5e8b7b71335656 (patch)
tree7634b833a4c5a647a172f29cff281920ce0f07ed /src/core/hle/kernel/mutex.cpp
parentMerge pull request #864 from linkmauve/gl-info (diff)
parentkernel: Fix svcWaitSynch to always acquire requested wait objects. (diff)
downloadyuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.tar
yuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.tar.gz
yuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.tar.bz2
yuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.tar.lz
yuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.tar.xz
yuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.tar.zst
yuzu-2e16edbc56c51265250269dd2d5e8b7b71335656.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