diff options
| author | 2014-12-20 23:22:53 -0500 | |
|---|---|---|
| committer | 2014-12-20 23:22:53 -0500 | |
| commit | cdfe665a2108fee226d6ab0cca29dec508214de3 (patch) | |
| tree | f480476d15f4b8074f4797f75d3e6aedccca1547 /src/core/hle/svc.cpp | |
| parent | Merge pull request #319 from yuriks/travis-apt-cache (diff) | |
| parent | Thread: Wait current thread on svc_SleepThread (diff) | |
| download | yuzu-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.cpp | 3 |
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) { | |||
| 352 | static void SleepThread(s64 nanoseconds) { | 352 | static 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 | ||