mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 00:08:21 -05:00
SVC: Fixed SleepThread.
It will now properly wait the specified number of nanoseconds and then wake up the thread.
This commit is contained in:
@ -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__);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user