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/time_manager.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 '')
-rw-r--r-- | src/core/hle/kernel/time_manager.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/core/hle/kernel/time_manager.h b/src/core/hle/kernel/time_manager.h deleted file mode 100644 index 94d16b3b4..000000000 --- a/src/core/hle/kernel/time_manager.h +++ /dev/null @@ -1,41 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include <memory> -#include <mutex> - -namespace Core { -class System; -} // namespace Core - -namespace Core::Timing { -struct EventType; -} // namespace Core::Timing - -namespace Kernel { - -class KThread; - -/** - * The `TimeManager` takes care of scheduling time events on threads and executes their TimeUp - * method when the event is triggered. - */ -class TimeManager { -public: - explicit TimeManager(Core::System& system); - - /// Schedule a time event on `timetask` thread that will expire in 'nanoseconds' - void ScheduleTimeEvent(KThread* time_task, s64 nanoseconds); - - /// Unschedule an existing time event - void UnscheduleTimeEvent(KThread* thread); - -private: - Core::System& system; - std::shared_ptr<Core::Timing::EventType> time_manager_event_type; - std::mutex mutex; -}; - -} // namespace Kernel |