From dfc440785af73e400e7672377bdf7f65c9eca61c Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 7 Jan 2015 16:40:08 -0500 Subject: SVC: Fixed SleepThread. It will now properly wait the specified number of nanoseconds and then wake up the thread. --- src/core/hle/kernel/thread.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/hle/kernel/thread.h') diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index dfe92d162..e6961e279 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h @@ -87,6 +87,13 @@ Handle GetCurrentThreadHandle(); */ void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); +/** + * Schedules an event to wake up the specified thread after the specified delay. + * @param handle The thread handle. + * @param nanoseconds The time this thread will be allowed to sleep for. + */ +void WakeThreadAfterDelay(Handle handle, s64 nanoseconds); + /** * Puts the current thread in the wait state for the given type * @param wait_type Type of wait -- cgit v1.2.3