emilib
|
#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: | |
This is used from within the coroutine.