diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-20 23:22:53 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-20 23:22:53 -0500 |
commit | cdfe665a2108fee226d6ab0cca29dec508214de3 (patch) | |
tree | f480476d15f4b8074f4797f75d3e6aedccca1547 /src/core/hle/svc.cpp | |
parent | 09a5df31d6e292af2d239f4f5f86251f8c7a21ea (diff) | |
parent | 4fcdbed9f661a37772db915904a852850037d84a (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.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) { 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__); } |