mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd: Allow exceptions to propagate from various interruptors.
This commit is contained in:
parent
365cf865d0
commit
c2b344b74e
3 changed files with 7 additions and 7 deletions
|
@ -134,7 +134,7 @@ try
|
|||
};
|
||||
|
||||
const auto interruption{[this]
|
||||
(ctx::ctx *const &) noexcept
|
||||
(ctx::ctx *const &)
|
||||
{
|
||||
this->cancel();
|
||||
}};
|
||||
|
@ -169,7 +169,7 @@ ircd::net::socket::read_few(iov&& bufs)
|
|||
try
|
||||
{
|
||||
const auto interruption{[this]
|
||||
(ctx::ctx *const &) noexcept
|
||||
(ctx::ctx *const &)
|
||||
{
|
||||
this->cancel();
|
||||
}};
|
||||
|
@ -256,7 +256,7 @@ try
|
|||
};
|
||||
|
||||
const auto interruption{[this]
|
||||
(ctx::ctx *const &) noexcept
|
||||
(ctx::ctx *const &)
|
||||
{
|
||||
this->cancel();
|
||||
}};
|
||||
|
@ -285,7 +285,7 @@ ircd::net::socket::write_few(iov&& bufs)
|
|||
try
|
||||
{
|
||||
const auto interruption{[this]
|
||||
(ctx::ctx *const &) noexcept
|
||||
(ctx::ctx *const &)
|
||||
{
|
||||
this->cancel();
|
||||
}};
|
||||
|
|
|
@ -409,7 +409,7 @@ try
|
|||
};
|
||||
|
||||
const auto interruption{[&fd]
|
||||
(ctx::ctx *const &interruptor) noexcept
|
||||
(ctx::ctx *const &interruptor)
|
||||
{
|
||||
fd.cancel();
|
||||
}};
|
||||
|
|
|
@ -1742,7 +1742,7 @@ ircd::net::listener_udp::acceptor::operator()(datagram &datagram)
|
|||
};
|
||||
|
||||
const auto interruption{[this]
|
||||
(ctx::ctx *const &) noexcept
|
||||
(ctx::ctx *const &)
|
||||
{
|
||||
this->interrupt();
|
||||
}};
|
||||
|
@ -2131,7 +2131,7 @@ ircd::net::socket::wait(const wait_opts &opts)
|
|||
try
|
||||
{
|
||||
const auto interruption{[this]
|
||||
(ctx::ctx *const &) noexcept
|
||||
(ctx::ctx *const &)
|
||||
{
|
||||
this->cancel();
|
||||
}};
|
||||
|
|
Loading…
Reference in a new issue