summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-01-01 11:57:02 -0500
committerSubv <subv2112@gmail.com>2017-01-04 15:58:44 -0500
commit38a90882a4230bb797ae3f6857e986d70f3bd265 (patch)
tree3b2e841905a7cbeaceaebe297a128d75892d79f2 /src/core/hle/kernel
parent8f6c3b5c20b6fe35ddfe22d2bf6e9562d0f22e4c (diff)
Kernel/Synch: Do not attempt a reschedule on every syscall.
Not all syscalls should cause reschedules, this commit attempts to remedy that, however, it still does not cover all cases.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/mutex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index 736944bae..8d92a9b8e 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -84,6 +84,7 @@ void Mutex::Release() {
if (lock_count == 0) {
holding_thread->held_mutexes.erase(this);
ResumeWaitingThread(this);
+ Core::System::GetInstance().PrepareReschedule();
}
}
}