diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-26 00:43:28 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:35:14 +0200 |
commit | 15a79eb0d7abe752a9a55d0cfa7ea220e17318b7 (patch) | |
tree | 863357ab4be1ff9a72804c40455d6a4c4c493acd /src/core/hle/kernel/scheduler.cpp | |
parent | SVC: Correct ArbitrateUnlock (diff) | |
download | yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.tar yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.tar.gz yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.tar.bz2 yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.tar.lz yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.tar.xz yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.tar.zst yuzu-15a79eb0d7abe752a9a55d0cfa7ea220e17318b7.zip |
Diffstat (limited to 'src/core/hle/kernel/scheduler.cpp')
-rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index 5166020a0..0e85ee69e 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp @@ -715,4 +715,13 @@ SchedulerLockAndSleep::~SchedulerLockAndSleep() { time_manager.ScheduleTimeEvent(event_handle, time_task, nanoseconds); } +void SchedulerLockAndSleep::Release() { + if (sleep_cancelled) { + return; + } + auto& time_manager = kernel.TimeManager(); + time_manager.ScheduleTimeEvent(event_handle, time_task, nanoseconds); + sleep_cancelled = true; +} + } // namespace Kernel |