SVC: Fixed SleepThread.

It will now properly wait the specified number of nanoseconds and then wake up the thread.
This commit is contained in:
Subv 2015-01-07 16:40:08 -05:00
parent 91d96840ea
commit dfc440785a
3 changed files with 43 additions and 8 deletions

View file

@ -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