Commit d52371cf authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent e371e74c
...@@ -37,10 +37,7 @@ ...@@ -37,10 +37,7 @@
namespace caf { namespace caf {
stream_manager::stream_manager(scheduled_actor* selfptr, stream_priority prio) stream_manager::stream_manager(scheduled_actor* selfptr, stream_priority prio)
: self_(selfptr), : self_(selfptr), pending_handshakes_(0), priority_(prio), flags_(0) {
pending_handshakes_(0),
priority_(prio),
flags_(0) {
// nop // nop
} }
...@@ -144,8 +141,9 @@ void stream_manager::shutdown() { ...@@ -144,8 +141,9 @@ void stream_manager::shutdown() {
if (getf(is_shutting_down_flag | is_stopped_flag)) if (getf(is_shutting_down_flag | is_stopped_flag))
return; return;
flags_ = is_shutting_down_flag; flags_ = is_shutting_down_flag;
CAF_LOG_DEBUG("emit shutdown messages on" << inbound_paths_.size() CAF_LOG_DEBUG("emit shutdown messages on"
<< "inbound paths;" << CAF_ARG2("out.clean", out().clean()) << inbound_paths_.size() << "inbound paths;"
<< CAF_ARG2("out.clean", out().clean())
<< CAF_ARG2("out.paths", out().num_paths())); << CAF_ARG2("out.paths", out().num_paths()));
for (auto ipath : inbound_paths_) for (auto ipath : inbound_paths_)
ipath->emit_regular_shutdown(self_); ipath->emit_regular_shutdown(self_);
...@@ -238,15 +236,12 @@ void stream_manager::remove_input_path(stream_slot slot, error reason, ...@@ -238,15 +236,12 @@ void stream_manager::remove_input_path(stream_slot slot, error reason,
} }
inbound_path* stream_manager::get_inbound_path(stream_slot x) const noexcept { inbound_path* stream_manager::get_inbound_path(stream_slot x) const noexcept {
auto pred = [=](inbound_path* ptr) { auto pred = [=](inbound_path* ptr) { return ptr->slots.receiver == x; };
return ptr->slots.receiver == x;
};
auto e = inbound_paths_.end(); auto e = inbound_paths_.end();
auto i = std::find_if(inbound_paths_.begin(), e, pred); auto i = std::find_if(inbound_paths_.begin(), e, pred);
return i != e ? *i : nullptr; return i != e ? *i : nullptr;
} }
bool stream_manager::inbound_paths_idle() const noexcept { bool stream_manager::inbound_paths_idle() const noexcept {
auto f = [](inbound_path* x) { auto f = [](inbound_path* x) {
return x->up_to_date() && x->assigned_credit > 0; return x->up_to_date() && x->assigned_credit > 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment