diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-09-10 22:14:03 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-09-13 14:20:35 +0200 |
commit | e93e898df528d013e2e0cfeba22e2b6d76bf99b6 (patch) | |
tree | ab921a035ce71311c126a1af7cb2bbcbfef6d024 /src/core/core_timing.cpp | |
parent | Merge pull request #8842 from Kelebek1/AudOut (diff) | |
download | yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.tar yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.tar.gz yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.tar.bz2 yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.tar.lz yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.tar.xz yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.tar.zst yuzu-e93e898df528d013e2e0cfeba22e2b6d76bf99b6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core_timing.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 2dbb99c8b..5375a5d59 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -73,7 +73,6 @@ void CoreTiming::Shutdown() { if (timer_thread) { timer_thread->join(); } - pause_callbacks.clear(); ClearPendingEvents(); timer_thread.reset(); has_started = false; @@ -86,10 +85,6 @@ void CoreTiming::Pause(bool is_paused) { if (!is_paused) { pause_end_time = GetGlobalTimeNs().count(); } - - for (auto& cb : pause_callbacks) { - cb(is_paused); - } } void CoreTiming::SyncPause(bool is_paused) { @@ -110,10 +105,6 @@ void CoreTiming::SyncPause(bool is_paused) { if (!is_paused) { pause_end_time = GetGlobalTimeNs().count(); } - - for (auto& cb : pause_callbacks) { - cb(is_paused); - } } bool CoreTiming::IsRunning() const { @@ -219,11 +210,6 @@ void CoreTiming::RemoveEvent(const std::shared_ptr<EventType>& event_type) { } } -void CoreTiming::RegisterPauseCallback(PauseCallback&& callback) { - std::scoped_lock lock{basic_lock}; - pause_callbacks.emplace_back(std::move(callback)); -} - std::optional<s64> CoreTiming::Advance() { std::scoped_lock lock{advance_lock, basic_lock}; global_timer = GetGlobalTimeNs().count(); |