Classes | Typedefs | Enumerations | Functions | Variables
coroutine Namespace Reference

Classes

class  Channel
 
struct  Ordinator
 
struct  Routine
 

Typedefs

typedef unsigned routine_t
 

Enumerations

enum  ResumeResult { ResumeResult::INVALID = -1, ResumeResult::FINISHED = -2, ResumeResult::YIELD = 0 }
 

Functions

template<typename Function >
std::result_of< Function()>::type await (Function &&func)
 
routine_t create (std::function< void()> f)
 
routine_t current ()
 
void destroy (routine_t id)
 
void entry ()
 
ResumeResult resume (routine_t id)
 
void yield ()
 

Variables

static thread_local Ordinator ordinator
 

Typedef Documentation

typedef unsigned coroutine::routine_t

Definition at line 54 of file coroutine.h.

Enumeration Type Documentation

Enumerator
INVALID 
FINISHED 
YIELD 

Definition at line 56 of file coroutine.h.

Function Documentation

template<typename Function >
std::result_of<Function()>::type coroutine::await ( Function &&  func)
inline

Definition at line 381 of file coroutine.h.

routine_t coroutine::create ( std::function< void()>  f)
inline

Definition at line 277 of file coroutine.h.

routine_t coroutine::current ( )
inline

Definition at line 375 of file coroutine.h.

void coroutine::destroy ( routine_t  id)
inline

Definition at line 296 of file coroutine.h.

void coroutine::entry ( )
inline

Definition at line 305 of file coroutine.h.

ResumeResult coroutine::resume ( routine_t  id)
inline

Definition at line 316 of file coroutine.h.

void coroutine::yield ( )
inline

Definition at line 361 of file coroutine.h.

Variable Documentation

thread_local Ordinator coroutine::ordinator
static

Definition at line 275 of file coroutine.h.



behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:06