From e0e744351795e96e1e0cc0f16d0f75476e06ede5 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 26 Nov 2014 00:34:14 -0500 Subject: [PATCH] SVC: SleepThread should yield to the next ready thread. --- src/core/hle/svc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 87d768856..48c8dee1e 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -331,6 +331,9 @@ static Result ClearEvent(Handle evt) { /// Sleep the current thread static void SleepThread(s64 nanoseconds) { DEBUG_LOG(SVC, "called nanoseconds=%lld", nanoseconds); + + // Check for next thread to schedule + HLE::Reschedule(__func__); } /// This returns the total CPU ticks elapsed since the CPU was powered-on