Skip to content

Commit cc01777

Browse files
committed
formatting
1 parent 013d35d commit cc01777

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

include/reactor-cpp/connection.hh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public:
142142
};
143143
}
144144

145-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
146-
const std::function<bool(void)>& abort_waiting) -> bool override {
145+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
146+
-> bool override {
147147
reactor_assert(lock.owns_lock());
148148
log_.debug() << "downstream tries to acquire tag " << tag;
149149

@@ -209,8 +209,8 @@ public:
209209
};
210210
}
211211

212-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
213-
const std::function<bool(void)>& abort_waiting) -> bool override {
212+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
213+
-> bool override {
214214
// Since this is a delayed connection, we can go back in time and need to
215215
// acquire the latest upstream tag that can create an event at the given
216216
// tag. We also need to consider that given a delay d and a tag g=(t, n),
@@ -239,8 +239,8 @@ public:
239239
};
240240
}
241241

242-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
243-
const std::function<bool(void)>& abort_waiting) -> bool override {
242+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
243+
-> bool override {
244244
this->log_.debug() << "downstream tries to acquire tag " << tag;
245245
return PhysicalTimeBarrier::acquire_tag(tag, lock, this->environment()->scheduler(), abort_waiting);
246246
}

include/reactor-cpp/time_barrier.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public:
7979
// The caller must hold a lock on the scheduler mutex
8080
auto try_acquire_tag(const Tag& tag) { return tag <= released_time_; }
8181

82-
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock,
83-
const std::function<bool(void)>& abort_waiting) -> bool {
82+
auto acquire_tag(const Tag& tag, std::unique_lock<std::mutex>& lock, const std::function<bool(void)>& abort_waiting)
83+
-> bool {
8484
if (try_acquire_tag(tag)) {
8585
return true;
8686
}

include/reactor-cpp/value_ptr.hh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -514,23 +514,23 @@ public:
514514
// Comparison operators
515515

516516
template <class T, class U, bool is_trivial>
517-
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1,
518-
const MutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
517+
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1, const MutableValuePtr<U, is_trivial>& ptr2) noexcept
518+
-> bool {
519519
return ptr1.get() == ptr2.get();
520520
}
521521
template <class T, class U, bool is_trivial>
522-
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1,
523-
const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
522+
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1, const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept
523+
-> bool {
524524
return ptr1.get() == ptr2.get();
525525
}
526526
template <class T, class U, bool is_trivial>
527-
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1,
528-
const MutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
527+
auto operator==(const ImmutableValuePtr<T, is_trivial>& ptr1, const MutableValuePtr<U, is_trivial>& ptr2) noexcept
528+
-> bool {
529529
return ptr1.get() == ptr2.get();
530530
}
531531
template <class T, class U, bool is_trivial>
532-
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1,
533-
const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
532+
auto operator==(const MutableValuePtr<T, is_trivial>& ptr1, const ImmutableValuePtr<U, is_trivial>& ptr2) noexcept
533+
-> bool {
534534
return ptr1.get() == ptr2.get();
535535
}
536536
template <class T, bool is_trivial>
@@ -551,8 +551,8 @@ auto operator==(std::nullptr_t, const ImmutableValuePtr<T, is_trivial>& ptr1) no
551551
}
552552

553553
template <class T, class U, bool is_trivial>
554-
auto operator!=(const MutableValuePtr<T, is_trivial>& ptr1,
555-
const MutableValuePtr<U, is_trivial>& ptr2) noexcept -> bool {
554+
auto operator!=(const MutableValuePtr<T, is_trivial>& ptr1, const MutableValuePtr<U, is_trivial>& ptr2) noexcept
555+
-> bool {
556556
return ptr1.get() != ptr2.get();
557557
}
558558

0 commit comments

Comments
 (0)