Use async_op_base::invoke

This commit is contained in:
Vinnie Falco committed 2019-02-16 15:09:34 -08:00
1 parent f41363c60c
commit 2e62f25701
7 files changed
+30 -81

No files matched your search

+1 -8
View File
@@ -246,14 +246,7 @@ public:
d_.ws.impl_->paused_rd.maybe_invoke() ||
d_.ws.impl_->paused_ping.maybe_invoke() ||
d_.ws.impl_->paused_wr.maybe_invoke();
if(! d_.cont)
{
BOOST_ASIO_CORO_YIELD
net::post(
d_.ws.get_executor(),
beast::bind_front_handler(std::move(*this), ec));
}
this->invoke_now(ec);
this->invoke(d_.cont, ec);
}
}
};
+1 -9
View File
@@ -609,15 +609,7 @@ public:
impl.paused_close.maybe_invoke() ||
impl.paused_ping.maybe_invoke() ||
impl.paused_wr.maybe_invoke();
if(! cont_)
{
BOOST_ASIO_CORO_YIELD
net::post(
ws_.get_executor(),
beast::bind_front_handler(std::move(*this),
ec, bytes_written_));
}
this->invoke_now(ec, bytes_written_);
this->invoke(cont_, ec, bytes_written_);
}
}
};
+1 -10
View File
@@ -422,16 +422,7 @@ operator()(
ws_.impl_->paused_close.maybe_invoke() ||
ws_.impl_->paused_rd.maybe_invoke() ||
ws_.impl_->paused_ping.maybe_invoke();
if(! cont_)
{
BOOST_ASIO_CORO_YIELD
net::post(
ws_.get_executor(),
beast::bind_front_handler(
std::move(*this),
ec, bytes_transferred_));
}
this->invoke_now(ec, bytes_transferred_);
this->invoke(cont_, ec, bytes_transferred_);
}
}