summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-20 23:22:53 -0500
committerbunnei <bunneidev@gmail.com>2014-12-20 23:22:53 -0500
commitcdfe665a2108fee226d6ab0cca29dec508214de3 (patch)
treef480476d15f4b8074f4797f75d3e6aedccca1547 /src/core/hle/svc.cpp
parent09a5df31d6e292af2d239f4f5f86251f8c7a21ea (diff)
parent4fcdbed9f661a37772db915904a852850037d84a (diff)
Merge pull request #318 from bunnei/simulate-thread-sleep
Thread: Wait current thread on svc_SleepThread
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__);
}