0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-15 09:06:50 +01:00

ircd: Allow exceptions to propagate from various interruptors.

This commit is contained in:
Jason Volk 2018-12-22 16:21:27 -08:00
parent 365cf865d0
commit c2b344b74e
3 changed files with 7 additions and 7 deletions
include/ircd/net
ircd

View file

@ -134,7 +134,7 @@ try
}; };
const auto interruption{[this] const auto interruption{[this]
(ctx::ctx *const &) noexcept (ctx::ctx *const &)
{ {
this->cancel(); this->cancel();
}}; }};
@ -169,7 +169,7 @@ ircd::net::socket::read_few(iov&& bufs)
try try
{ {
const auto interruption{[this] const auto interruption{[this]
(ctx::ctx *const &) noexcept (ctx::ctx *const &)
{ {
this->cancel(); this->cancel();
}}; }};
@ -256,7 +256,7 @@ try
}; };
const auto interruption{[this] const auto interruption{[this]
(ctx::ctx *const &) noexcept (ctx::ctx *const &)
{ {
this->cancel(); this->cancel();
}}; }};
@ -285,7 +285,7 @@ ircd::net::socket::write_few(iov&& bufs)
try try
{ {
const auto interruption{[this] const auto interruption{[this]
(ctx::ctx *const &) noexcept (ctx::ctx *const &)
{ {
this->cancel(); this->cancel();
}}; }};

View file

@ -409,7 +409,7 @@ try
}; };
const auto interruption{[&fd] const auto interruption{[&fd]
(ctx::ctx *const &interruptor) noexcept (ctx::ctx *const &interruptor)
{ {
fd.cancel(); fd.cancel();
}}; }};

View file

@ -1742,7 +1742,7 @@ ircd::net::listener_udp::acceptor::operator()(datagram &datagram)
}; };
const auto interruption{[this] const auto interruption{[this]
(ctx::ctx *const &) noexcept (ctx::ctx *const &)
{ {
this->interrupt(); this->interrupt();
}}; }};
@ -2131,7 +2131,7 @@ ircd::net::socket::wait(const wait_opts &opts)
try try
{ {
const auto interruption{[this] const auto interruption{[this]
(ctx::ctx *const &) noexcept (ctx::ctx *const &)
{ {
this->cancel(); this->cancel();
}}; }};