mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️:acquire: Move tail cleanup to dtor.
This commit is contained in:
parent
23a9589fd4
commit
2351cc071f
1 changed files with 10 additions and 3 deletions
|
@ -72,16 +72,23 @@ ircd::m::acquire::acquire::acquire(const struct opts &opts)
|
|||
// Branch to acquire state
|
||||
if(opts.state)
|
||||
acquire_state();
|
||||
}
|
||||
|
||||
ircd::m::acquire::~acquire()
|
||||
noexcept try
|
||||
{
|
||||
// Complete all work before returning, otherwise everything
|
||||
// will be cancelled on unwind.
|
||||
while(!fetching.empty())
|
||||
while(handle());
|
||||
}
|
||||
|
||||
ircd::m::acquire::~acquire()
|
||||
noexcept
|
||||
catch(const ctx::interrupted &)
|
||||
{
|
||||
return;
|
||||
}
|
||||
catch(const ctx::terminated &)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue