diff options
| author | 2017-01-01 11:57:02 -0500 | |
|---|---|---|
| committer | 2017-01-04 15:58:44 -0500 | |
| commit | 38a90882a4230bb797ae3f6857e986d70f3bd265 (patch) | |
| tree | 3b2e841905a7cbeaceaebe297a128d75892d79f2 /src/core/hle/kernel/mutex.cpp | |
| parent | Try a different encrypted bintray api key for travis. Change appveyor to uplo... (diff) | |
| download | yuzu-38a90882a4230bb797ae3f6857e986d70f3bd265.tar.gz yuzu-38a90882a4230bb797ae3f6857e986d70f3bd265.tar.xz yuzu-38a90882a4230bb797ae3f6857e986d70f3bd265.zip | |
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/mutex.cpp')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 1 |
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() { | |||
| 84 | if (lock_count == 0) { | 84 | if (lock_count == 0) { |
| 85 | holding_thread->held_mutexes.erase(this); | 85 | holding_thread->held_mutexes.erase(this); |
| 86 | ResumeWaitingThread(this); | 86 | ResumeWaitingThread(this); |
| 87 | Core::System::GetInstance().PrepareReschedule(); | ||
| 87 | } | 88 | } |
| 88 | } | 89 | } |
| 89 | } | 90 | } |