libcopp  2.2.0
Data Structures | Namespaces | Macros | Functions
coroutine_context.h File Reference
#include <libcopp/utils/config/libcopp_build_features.h>
#include "coroutine_context_base.h"
Include dependency graph for coroutine_context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  coroutine_context
 base type of all stackful coroutine context More...
 
struct  coroutine_context::jump_src_data_t
 

Namespaces

 this_coroutine
 

Macros

#define COROUTINE_CONTEXT_BASE_USING_BASE_SEGMENTED_STACKS(base_type)
 
#define COROUTINE_CONTEXT_BASE_USING_BASE(base_type)
 

Functions

LIBCOPP_COPP_API coroutine_contextthis_coroutine::get_coroutine () LIBCOPP_MACRO_NOEXCEPT
 get current coroutine More...
 
template<typename Tc >
LIBCOPP_COPP_API_HEAD_ONLY Tc * this_coroutine::get ()
 get current coroutine and try to convert type More...
 
LIBCOPP_COPP_API int this_coroutine::yield (void **priv_data=nullptr) LIBCOPP_MACRO_NOEXCEPT
 yield current coroutine More...
 

Macro Definition Documentation

◆ COROUTINE_CONTEXT_BASE_USING_BASE

#define COROUTINE_CONTEXT_BASE_USING_BASE (   base_type)
Value:
protected: \
using base_type::caller_; \
using base_type::callee_; \
using base_type::callee_stack_; \
COROUTINE_CONTEXT_BASE_USING_BASE_SEGMENTED_STACKS(base_type)

Definition at line 15 of file coroutine_context.h.

◆ COROUTINE_CONTEXT_BASE_USING_BASE_SEGMENTED_STACKS

#define COROUTINE_CONTEXT_BASE_USING_BASE_SEGMENTED_STACKS (   base_type)

Definition at line 12 of file coroutine_context.h.