diff options
author | wwylele <wwylele@gmail.com> | 2016-05-21 16:45:18 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-05-21 17:29:38 +0200 |
commit | 86ea7995ad6a6cb24fc02025e1a1241c00565809 (patch) | |
tree | e397052f605f0d7b70792e329a7a6b5d39921fe3 | |
parent | Merge pull request #1797 from MerryMage/audio-mixer (diff) | |
download | yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.tar yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.tar.gz yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.tar.bz2 yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.tar.lz yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.tar.xz yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.tar.zst yuzu-86ea7995ad6a6cb24fc02025e1a1241c00565809.zip |
-rw-r--r-- | src/core/hle/svc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 2bf122a6d..0ce72de87 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -6,6 +6,7 @@ #include "common/logging/log.h" #include "common/microprofile.h" +#include "common/scope_exit.h" #include "common/string_util.h" #include "common/symbols.h" @@ -326,9 +327,9 @@ static ResultCode WaitSynchronizationN(s32* out, Handle* handles, s32 handle_cou } } - HLE::Reschedule(__func__); + SCOPE_EXIT({HLE::Reschedule("WaitSynchronizationN");}); // Reschedule after putting the threads to sleep. - // If thread should wait, then set its state to waiting and then reschedule... + // If thread should wait, then set its state to waiting if (wait_thread) { // Actually wait the current thread on each object if we decided to wait... |