mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd:Ⓜ️🪝 Use nothrow disable_interruption; propagate by default.
This commit is contained in:
parent
d00392b90c
commit
ef022a215f
3 changed files with 6 additions and 4 deletions
|
@ -90,7 +90,7 @@ struct ircd::m::hook::base::site
|
|||
std::set<base *> hooks;
|
||||
size_t matchers {0};
|
||||
bool exceptions {true};
|
||||
bool interrupts {false};
|
||||
bool interrupts {true};
|
||||
size_t calls {0};
|
||||
size_t calling {0};
|
||||
|
||||
|
@ -189,7 +189,7 @@ ircd::m::hook::site<data>::operator()(base **const &cur,
|
|||
const event &event,
|
||||
data d)
|
||||
{
|
||||
const ctx::uninterruptible ui
|
||||
const ctx::uninterruptible::nothrow ui
|
||||
{
|
||||
!interrupts
|
||||
};
|
||||
|
|
|
@ -335,7 +335,7 @@ ircd::m::hook::base::site::site(const json::members &members)
|
|||
}
|
||||
,interrupts
|
||||
{
|
||||
feature.get<bool>("interrupts", false)
|
||||
feature.get<bool>("interrupts", true)
|
||||
}
|
||||
{
|
||||
for(const auto &site : list)
|
||||
|
@ -519,7 +519,7 @@ void
|
|||
ircd::m::hook::site<void>::operator()(base **const &cur,
|
||||
const event &event)
|
||||
{
|
||||
const ctx::uninterruptible ui
|
||||
const ctx::uninterruptible::nothrow ui
|
||||
{
|
||||
!interrupts
|
||||
};
|
||||
|
|
|
@ -113,6 +113,7 @@ ircd::m::vm::notify_hook
|
|||
{
|
||||
{ "name", "vm.notify" },
|
||||
{ "exceptions", false },
|
||||
{ "interrupts", false },
|
||||
};
|
||||
|
||||
decltype(ircd::m::vm::effect_hook)
|
||||
|
@ -120,6 +121,7 @@ ircd::m::vm::effect_hook
|
|||
{
|
||||
{ "name", "vm.effect" },
|
||||
{ "exceptions", false },
|
||||
{ "interrupts", false },
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue