diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-10 13:33:13 -0400 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-18 16:29:19 -0400 |
commit | 1bd706344e2381e11245b2f0bdc291429e46c634 (patch) | |
tree | 4abae5a2088df1eb023967d83c0b808eceb30cea /src/core/host_timing.cpp | |
parent | 03e4f5dac436fe361834e6b9918983e9c4787acb (diff) |
Common/Tests: Clang Format.
Diffstat (limited to 'src/core/host_timing.cpp')
-rw-r--r-- | src/core/host_timing.cpp | 8 |
1 files changed, 5 insertions, 3 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 |