emilib
Public Member Functions | List of all members
emilib::cr::InnerControl Class Reference


More...

#include <coroutine.hpp>

Public Member Functions

 InnerControl (Coroutine &cr)
 
double time () const
 Total running time of this coroutine (sum of all dt).
 
template<typename Fun >
void wait_for (const Fun &fun)
 Inner thread: return execution to Outer thread until fun() is true.
 
void wait_sec (double s)
 Inner thread: return execution to Outer thread for the next s seconds.
 
void yield ()
 Inner thread: Return execution to Outer thread.
 
void poll (double dt)
 Called from Outer:
 

Detailed Description


This is used from within the coroutine.


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