0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 00:03:45 +02:00

ircd:Ⓜ️🪝 Use nothrow disable_interruption; propagate by default.

This commit is contained in:
Jason Volk 2020-05-24 20:56:30 -07:00
parent d00392b90c
commit ef022a215f
3 changed files with 6 additions and 4 deletions

View file

@ -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
};

View file

@ -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
};

View file

@ -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 },
};
//