summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-01-07 22:40:08 +0100
committerSubv <subv2112@gmail.com>2015-01-09 00:39:12 +0100
commitdfc440785af73e400e7672377bdf7f65c9eca61c (patch)
tree16981e2ec3d97455abe361bf6ebb6ef161df1c19 /src/core/hle/svc.cpp
parentMerge pull request #439 from Subv/idle_thread_m (diff)
downloadyuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.tar
yuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.tar.gz
yuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.tar.bz2
yuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.tar.lz
yuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.tar.xz
yuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.tar.zst
yuzu-dfc440785af73e400e7672377bdf7f65c9eca61c.zip
Diffstat (limited to '')
-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) {
// Sleep current thread and check for next thread to schedule
Kernel::WaitCurrentThread(WAITTYPE_SLEEP);
+
+ // Create an event to wake the thread up after the specified nanosecond delay has passed
+ Kernel::WakeThreadAfterDelay(Kernel::GetCurrentThreadHandle(), nanoseconds);
+
HLE::Reschedule(__func__);
}