summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-08 18:45:35 -0500
committerGravatar bunnei2015-01-08 18:45:35 -0500
commitcf1bbe8705b04776be49c01265b11babbda59b2e (patch)
tree0bf742b6be09aa56c4a49f57667b463399b45d93 /src/core/hle/svc.cpp
parentMerge pull request #446 from lioncash/umaal (diff)
parentSVC: Fixed SleepThread. (diff)
downloadyuzu-cf1bbe8705b04776be49c01265b11babbda59b2e.tar.gz
yuzu-cf1bbe8705b04776be49c01265b11babbda59b2e.tar.xz
yuzu-cf1bbe8705b04776be49c01265b11babbda59b2e.zip
Merge pull request #443 from Subv/sleep_thread
SVC: Fixed SleepThread
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index c25409a9f..4003e0ba9 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -344,6 +344,10 @@ static void SleepThread(s64 nanoseconds) {
344 344
345 // Sleep current thread and check for next thread to schedule 345 // Sleep current thread and check for next thread to schedule
346 Kernel::WaitCurrentThread(WAITTYPE_SLEEP); 346 Kernel::WaitCurrentThread(WAITTYPE_SLEEP);
347
348 // Create an event to wake the thread up after the specified nanosecond delay has passed
349 Kernel::WakeThreadAfterDelay(Kernel::GetCurrentThreadHandle(), nanoseconds);
350
347 HLE::Reschedule(__func__); 351 HLE::Reschedule(__func__);
348} 352}
349 353