aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-10 13:33:13 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-18 16:29:19 -0400
commit09d2ffa66300d4774436fd8b91c63ea0d7fc2607 (patch)
tree4abae5a2088df1eb023967d83c0b808eceb30cea /src/core
parent91f138bd19e046283110f906eb71f3e173ab8a68 (diff)
Common/Tests: Clang Format.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/host_timing.cpp8
-rw-r--r--src/core/host_timing.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/src/core/host_timing.cpp b/src/core/host_timing.cpp
index 4ccf7c6c1c..c734a118e4 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 f04a150eeb..15a150904a 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