diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-10 18:33:13 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-18 22:29:19 +0200 |
commit | 1bd706344e2381e11245b2f0bdc291429e46c634 (patch) | |
tree | 4abae5a2088df1eb023967d83c0b808eceb30cea /src/core | |
parent | Common: Correct fcontext fibers. (diff) | |
download | yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.tar yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.tar.gz yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.tar.bz2 yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.tar.lz yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.tar.xz yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.tar.zst yuzu-1bd706344e2381e11245b2f0bdc291429e46c634.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/host_timing.cpp | 8 | ||||
-rw-r--r-- | src/core/host_timing.h | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/core/host_timing.cpp b/src/core/host_timing.cpp index 4ccf7c6c1..c734a118e 100644 --- a/src/core/host_timing.cpp +++ b/src/core/host_timing.cpp @@ -72,7 +72,8 @@ void CoreTiming::SyncPause(bool is_paused) { } Pause(is_paused); event.Set(); - while (paused_set != is_paused); + while (paused_set != is_paused) + ; } bool CoreTiming::IsRunning() { @@ -158,7 +159,8 @@ void CoreTiming::Advance() { } if (!event_queue.empty()) { - std::chrono::nanoseconds next_time = std::chrono::nanoseconds(event_queue.front().time - global_timer); + std::chrono::nanoseconds next_time = + std::chrono::nanoseconds(event_queue.front().time - global_timer); basic_lock.unlock(); event.WaitFor(next_time); } else { @@ -181,4 +183,4 @@ std::chrono::microseconds CoreTiming::GetGlobalTimeUs() const { return clock->GetTimeUS(); } -} // namespace Core::Timing +} // namespace Core::HostTiming diff --git a/src/core/host_timing.h b/src/core/host_timing.h index f04a150ee..15a150904 100644 --- a/src/core/host_timing.h +++ b/src/core/host_timing.h @@ -145,4 +145,4 @@ private: /// std::shared_ptr<EventType> CreateEvent(std::string name, TimedCallback&& callback); -} // namespace Core::Timing +} // namespace Core::HostTiming |