Commit d52371cf authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent e371e74c
......@@ -37,10 +37,7 @@
namespace caf {
stream_manager::stream_manager(scheduled_actor* selfptr, stream_priority prio)
: self_(selfptr),
pending_handshakes_(0),
priority_(prio),
flags_(0) {
: self_(selfptr), pending_handshakes_(0), priority_(prio), flags_(0) {
// nop
}
......@@ -144,8 +141,9 @@ void stream_manager::shutdown() {
if (getf(is_shutting_down_flag | is_stopped_flag))
return;
flags_ = is_shutting_down_flag;
CAF_LOG_DEBUG("emit shutdown messages on" << inbound_paths_.size()
<< "inbound paths;" << CAF_ARG2("out.clean", out().clean())
CAF_LOG_DEBUG("emit shutdown messages on"
<< inbound_paths_.size() << "inbound paths;"
<< CAF_ARG2("out.clean", out().clean())
<< CAF_ARG2("out.paths", out().num_paths()));
for (auto ipath : inbound_paths_)
ipath->emit_regular_shutdown(self_);
......@@ -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 {
auto pred = [=](inbound_path* ptr) {
return ptr->slots.receiver == x;
};
auto pred = [=](inbound_path* ptr) { return ptr->slots.receiver == x; };
auto e = inbound_paths_.end();
auto i = std::find_if(inbound_paths_.begin(), e, pred);
return i != e ? *i : nullptr;
}
bool stream_manager::inbound_paths_idle() const noexcept {
auto f = [](inbound_path* x) {
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