Classes | |
class | Channel |
struct | Ordinator |
struct | Routine |
Typedefs | |
typedef unsigned | routine_t |
Enumerations | |
enum | ResumeResult { INVALID = -1, FINISHED = -2, 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 unsigned coroutine::routine_t |
Definition at line 54 of file coroutine.h.
Definition at line 56 of file coroutine.h.
std::result_of<Function()>::type coroutine::await | ( | Function && | func | ) | [inline] |
Definition at line 380 of file coroutine.h.
routine_t coroutine::create | ( | std::function< void()> | f | ) | [inline] |
Definition at line 275 of file coroutine.h.
routine_t coroutine::current | ( | ) | [inline] |
Definition at line 373 of file coroutine.h.
void coroutine::destroy | ( | routine_t | id | ) | [inline] |
Definition at line 294 of file coroutine.h.
void coroutine::entry | ( | ) | [inline] |
Definition at line 303 of file coroutine.h.
ResumeResult coroutine::resume | ( | routine_t | id | ) | [inline] |
Definition at line 314 of file coroutine.h.
void coroutine::yield | ( | ) | [inline] |
Definition at line 359 of file coroutine.h.
thread_local Ordinator coroutine::ordinator [static] |
Definition at line 273 of file coroutine.h.