diff options
author | Liam <byteslice@airmail.cc> | 2022-12-18 22:50:02 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-19 02:21:24 +0100 |
commit | c770f25ccb4755f6a6861037fbfdfdac55191348 (patch) | |
tree | eccc5140afa7a979800e8c27c1f4a2847adb283f /src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h | |
parent | kernel: add KHardwareTimer (diff) | |
download | yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.tar yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.tar.gz yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.tar.bz2 yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.tar.lz yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.tar.xz yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.tar.zst yuzu-c770f25ccb4755f6a6861037fbfdfdac55191348.zip |
Diffstat (limited to 'src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h')
-rw-r--r-- | src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h b/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h index 76c095e69..76db65a4d 100644 --- a/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h +++ b/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h @@ -5,9 +5,9 @@ #include "common/common_types.h" #include "core/hle/kernel/global_scheduler_context.h" +#include "core/hle/kernel/k_hardware_timer.h" #include "core/hle/kernel/k_thread.h" #include "core/hle/kernel/kernel.h" -#include "core/hle/kernel/time_manager.h" namespace Kernel { @@ -22,7 +22,7 @@ public: ~KScopedSchedulerLockAndSleep() { // Register the sleep. if (timeout_tick > 0) { - kernel.TimeManager().ScheduleTimeEvent(thread, timeout_tick); + kernel.HardwareTimer().RegisterTask(thread, timeout_tick); } // Unlock the scheduler. |