summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-12-20 23:22:53 -0500
committerGravatar bunnei2014-12-20 23:22:53 -0500
commitcdfe665a2108fee226d6ab0cca29dec508214de3 (patch)
treef480476d15f4b8074f4797f75d3e6aedccca1547 /src/core/hle/svc.cpp
parentMerge pull request #319 from yuriks/travis-apt-cache (diff)
parentThread: Wait current thread on svc_SleepThread (diff)
downloadyuzu-cdfe665a2108fee226d6ab0cca29dec508214de3.tar.gz
yuzu-cdfe665a2108fee226d6ab0cca29dec508214de3.tar.xz
yuzu-cdfe665a2108fee226d6ab0cca29dec508214de3.zip
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) {
352static void SleepThread(s64 nanoseconds) { 352static void SleepThread(s64 nanoseconds) {
353 LOG_TRACE(Kernel_SVC, "called nanoseconds=%lld", nanoseconds); 353 LOG_TRACE(Kernel_SVC, "called nanoseconds=%lld", nanoseconds);
354 354
355 // Check for next thread to schedule 355 // Sleep current thread and check for next thread to schedule
356 Kernel::WaitCurrentThread(WAITTYPE_SLEEP);
356 HLE::Reschedule(__func__); 357 HLE::Reschedule(__func__);
357} 358}
358 359