KiCad PCB EDA Suite
Loading...
Searching...
No Matches
COROUTINE< ReturnType, ArgType >::CALL_CONTEXT Class Reference

Public Member Functions

 CALL_CONTEXT ()
 
 ~CALL_CONTEXT ()
 
void SetMainStack (CONTEXT_T *aStack)
 
void RunMainStack (COROUTINE *aCor, std::function< void()> aFunc)
 
void Continue (INVOCATION_ARGS *args)
 

Private Attributes

CONTEXT_Tm_mainStackContext
 
std::function< void()> m_mainStackFunction
 

Detailed Description

template<typename ReturnType, typename ArgType>
class COROUTINE< ReturnType, ArgType >::CALL_CONTEXT

Definition at line 132 of file coroutine.h.

Constructor & Destructor Documentation

◆ CALL_CONTEXT()

template<typename ReturnType, typename ArgType>
COROUTINE< ReturnType, ArgType >::CALL_CONTEXT::CALL_CONTEXT ( )
inline

Definition at line 135 of file coroutine.h.

References m_mainStackContext.

◆ ~CALL_CONTEXT()

template<typename ReturnType, typename ArgType>
COROUTINE< ReturnType, ArgType >::CALL_CONTEXT::~CALL_CONTEXT ( )
inline

Definition at line 140 of file coroutine.h.

References m_mainStackContext.

Member Function Documentation

◆ Continue()

◆ RunMainStack()

template<typename ReturnType, typename ArgType>
void COROUTINE< ReturnType, ArgType >::CALL_CONTEXT::RunMainStack ( COROUTINE * aCor,
std::function< void()> aFunc )
inline

◆ SetMainStack()

template<typename ReturnType, typename ArgType>
void COROUTINE< ReturnType, ArgType >::CALL_CONTEXT::SetMainStack ( CONTEXT_T * aStack)
inline

Definition at line 147 of file coroutine.h.

References m_mainStackContext.

Referenced by COROUTINE< int, int >::callerStub().

Member Data Documentation

◆ m_mainStackContext

template<typename ReturnType, typename ArgType>
CONTEXT_T* COROUTINE< ReturnType, ArgType >::CALL_CONTEXT::m_mainStackContext
private

Definition at line 177 of file coroutine.h.

Referenced by CALL_CONTEXT(), RunMainStack(), SetMainStack(), and ~CALL_CONTEXT().

◆ m_mainStackFunction

template<typename ReturnType, typename ArgType>
std::function<void()> COROUTINE< ReturnType, ArgType >::CALL_CONTEXT::m_mainStackFunction
private

Definition at line 178 of file coroutine.h.

Referenced by Continue(), and RunMainStack().


The documentation for this class was generated from the following file: