libcopp  1.1.0
Namespaces | Functions | Variables
coroutine_context.cpp File Reference
#include <algorithm>
#include <assert.h>
#include <cstdlib>
#include <cstring>
#include <libcopp/utils/errno.h>
#include <libcopp/coroutine/coroutine_context.h>
#include <pthread.h>
Include dependency graph for coroutine_context.cpp:

Go to the source code of this file.

Namespaces

 copp
 
 copp::detail
 
 copp::this_coroutine
 

Functions

static void copp::detail::init_pthread_this_coroutine_context ()
 
static void copp::detail::set_this_coroutine_context (coroutine_context *p)
 
static coroutine_context * copp::detail::get_this_coroutine_context ()
 
coroutine_context * copp::this_coroutine::get_coroutine () UTIL_CONFIG_NOEXCEPT
 get current coroutine More...
 
int copp::this_coroutine::yield (void **priv_data=UTIL_CONFIG_NULLPTR)
 yield current coroutine More...
 

Variables

static pthread_once_t copp::detail::gt_coroutine_init_once = PTHREAD_ONCE_INIT
 
static pthread_key_t copp::detail::gt_coroutine_tls_key