mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -338,7 +338,9 @@ multi_runner_base<IsParent>::print_results(S& s)
|
||||
|
||||
template <bool IsParent>
|
||||
void
|
||||
multi_runner_base<IsParent>::message_queue_send(MessageType mt, std::string const& s)
|
||||
multi_runner_base<IsParent>::message_queue_send(
|
||||
MessageType mt,
|
||||
std::string const& s)
|
||||
{
|
||||
// must use a mutex since the two "sends" must happen in order
|
||||
std::lock_guard l{inner_->m_};
|
||||
@@ -351,12 +353,11 @@ constexpr const char* multi_runner_base<IsParent>::shared_mem_name_;
|
||||
template <bool IsParent>
|
||||
constexpr const char* multi_runner_base<IsParent>::message_queue_name_;
|
||||
|
||||
} // detail
|
||||
} // namespace detail
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
multi_runner_parent::multi_runner_parent()
|
||||
: os_(std::cout)
|
||||
multi_runner_parent::multi_runner_parent() : os_(std::cout)
|
||||
{
|
||||
message_queue_thread_ = std::thread([this] {
|
||||
std::vector<char> buf(1 << 20);
|
||||
@@ -382,7 +383,7 @@ multi_runner_parent::multi_runner_parent()
|
||||
buf.data(), buf.size(), recvd_size, priority);
|
||||
if (!recvd_size)
|
||||
continue;
|
||||
assert (recvd_size == 1);
|
||||
assert(recvd_size == 1);
|
||||
MessageType mt{*reinterpret_cast<MessageType*>(buf.data())};
|
||||
|
||||
this->message_queue_->receive(
|
||||
@@ -571,7 +572,7 @@ multi_runner_child::on_log(std::string const& msg)
|
||||
namespace detail {
|
||||
template class multi_runner_base<true>;
|
||||
template class multi_runner_base<false>;
|
||||
}
|
||||
} // namespace detail
|
||||
|
||||
} // unit_test
|
||||
} // beast
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user