LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::AddContext Struct Reference

#include "context.h"

Collaboration diagram for LC::Util::AddContext:

Public Member Functions

 AddContext (CoroContext &ctx)
bool await_ready () const noexcept
template<typename Promise>
requires requires { typename Promise::HasContextExtension; }
bool await_suspend (std::coroutine_handle< Promise > handle)
void await_resume () const noexcept

Public Attributes

CoroContext & Ctx_

Detailed Description

Definition at line 82 of file context.h.

Constructor & Destructor Documentation

◆ AddContext()

LC::Util::AddContext::AddContext ( CoroContext & ctx)
inlineexplicit

Definition at line 86 of file context.h.

References Ctx_.

Member Function Documentation

◆ await_ready()

bool LC::Util::AddContext::await_ready ( ) const
inlinenoexcept

Definition at line 91 of file context.h.

◆ await_resume()

void LC::Util::AddContext::await_resume ( ) const
inlinenoexcept

Definition at line 107 of file context.h.

◆ await_suspend()

template<typename Promise>
requires requires { typename Promise::HasContextExtension; }
bool LC::Util::AddContext::await_suspend ( std::coroutine_handle< Promise > handle)
inline

Definition at line 98 of file context.h.

References Ctx_.

Member Data Documentation

◆ Ctx_

CoroContext& LC::Util::AddContext::Ctx_

Definition at line 84 of file context.h.

Referenced by AddContext(), and await_suspend().


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.19214.g121e5318a7-build/leechcraft-0.6.70-19214-g121e5318a7/src/util/threads/coro/context.h