KiCad PCB EDA Suite
COROUTINE< ReturnType, ArgType >::CALL_CONTEXT Class Reference

Public Member Functions

 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 87 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 90 of file coroutine.h.

90  :
91  m_mainStackContext( nullptr )
92  {
93  }
CONTEXT_T * m_mainStackContext
Definition: coroutine.h:120

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

Member Data Documentation

◆ m_mainStackContext

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

◆ m_mainStackFunction

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

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