summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-20 08:32:19 +0100
committerbunnei <bunneidev@gmail.com>2014-12-21 05:20:19 +0100
commit4fcdbed9f661a37772db915904a852850037d84a (patch)
tree1dc3465b88e465c63ea2dbfd27e7aa17d5ac2c14 /src/core/hle/svc.cpp
parentMerge pull request #316 from yuriks/thread-handle (diff)
downloadyuzu-4fcdbed9f661a37772db915904a852850037d84a.tar
yuzu-4fcdbed9f661a37772db915904a852850037d84a.tar.gz
yuzu-4fcdbed9f661a37772db915904a852850037d84a.tar.bz2
yuzu-4fcdbed9f661a37772db915904a852850037d84a.tar.lz
yuzu-4fcdbed9f661a37772db915904a852850037d84a.tar.xz
yuzu-4fcdbed9f661a37772db915904a852850037d84a.tar.zst
yuzu-4fcdbed9f661a37772db915904a852850037d84a.zip
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 47e9bf77e..70ef7839c 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -352,7 +352,8 @@ static Result ClearEvent(Handle evt) {
static void SleepThread(s64 nanoseconds) {
LOG_TRACE(Kernel_SVC, "called nanoseconds=%lld", nanoseconds);
- // Check for next thread to schedule
+ // Sleep current thread and check for next thread to schedule
+ Kernel::WaitCurrentThread(WAITTYPE_SLEEP);
HLE::Reschedule(__func__);
}