SVC: Fixed SleepThread.
It will now properly wait the specified number of nanoseconds and then wake up the thread.
This commit is contained in:
parent
91d96840ea
commit
dfc440785a
3 changed files with 43 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue