diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-20 06:05:24 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:26 +0100 |
commit | c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b (patch) | |
tree | e138e7d0ecb6a306261e2871fd0da405571deaab /src/core/hle/kernel/time_manager.h | |
parent | common: common_funcs: Add useful kernel macro R_SUCCEED_IF. (diff) | |
download | yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.tar yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.tar.gz yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.tar.bz2 yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.tar.lz yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.tar.xz yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.tar.zst yuzu-c0f5830323ca5d5bdc2e5e494fcaeaf27fffeb6b.zip |
Diffstat (limited to 'src/core/hle/kernel/time_manager.h')
-rw-r--r-- | src/core/hle/kernel/time_manager.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/hle/kernel/time_manager.h b/src/core/hle/kernel/time_manager.h index 7cc702bec..0d7f05f30 100644 --- a/src/core/hle/kernel/time_manager.h +++ b/src/core/hle/kernel/time_manager.h @@ -31,18 +31,14 @@ public: explicit TimeManager(Core::System& system); /// Schedule a time event on `timetask` thread that will expire in 'nanoseconds' - /// returns a non-invalid handle in `event_handle` if correctly scheduled - void ScheduleTimeEvent(Handle& event_handle, KThread* timetask, s64 nanoseconds); + void ScheduleTimeEvent(KThread* time_task, s64 nanoseconds); /// Unschedule an existing time event - void UnscheduleTimeEvent(Handle event_handle); - - void CancelTimeEvent(KThread* time_task); + void UnscheduleTimeEvent(KThread* thread); private: Core::System& system; std::shared_ptr<Core::Timing::EventType> time_manager_event_type; - std::unordered_map<Handle, bool> cancelled_events; std::mutex mutex; }; |