mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::ctx: Remove argument from continuation ctor.
This commit is contained in:
parent
0311f4d44e
commit
5b52ac3103
2 changed files with 8 additions and 6 deletions
|
@ -52,7 +52,7 @@ struct ircd::ctx::continuation
|
|||
|
||||
virtual void interrupted(ctx *const &) noexcept;
|
||||
|
||||
continuation(ctx *const &self = ircd::ctx::current);
|
||||
continuation();
|
||||
virtual ~continuation() noexcept;
|
||||
};
|
||||
|
||||
|
@ -79,6 +79,5 @@ struct ircd::ctx::to_asio
|
|||
|
||||
inline
|
||||
ircd::ctx::to_asio::to_asio(const function &handler)
|
||||
:continuation{ircd::ctx::current}
|
||||
,handler{handler}
|
||||
:handler{handler}
|
||||
{}
|
||||
|
|
|
@ -110,7 +110,7 @@ ircd::ctx::ctx::jump()
|
|||
// with continuation of source after target
|
||||
{
|
||||
current->notes = 0; // Unconditionally cleared here
|
||||
const continuation continuation{current};
|
||||
const continuation continuation;
|
||||
target();
|
||||
}
|
||||
|
||||
|
@ -703,8 +703,11 @@ noexcept
|
|||
// continuation
|
||||
//
|
||||
|
||||
ircd::ctx::continuation::continuation(ctx *const &self)
|
||||
:self{self}
|
||||
ircd::ctx::continuation::continuation()
|
||||
:self
|
||||
{
|
||||
ircd::ctx::current
|
||||
}
|
||||
{
|
||||
mark(prof::event::CUR_YIELD);
|
||||
assert(!critical_asserted);
|
||||
|
|
Loading…
Reference in a new issue