#include <coroutine_decls.h>
Inheritance diagram for NewCoroutine:

Public Member Functions | |
| NewCoroutine (int stacksize=4096 *1024) | |
| NewCoroutine constructor. | |
| void | returnto (Coroutine &o, bool acquired=false) |
| Lets this coroutine return to the given coroutine. | |
| virtual void | start ()=0 |
| This is the coroutines main function. | |
| NewCoroutine::NewCoroutine | ( | int | stacksize = 4096 *1024 |
) |
NewCoroutine constructor.
| stacksize | is the size of the stack to be allocated for this coroutine |
| void NewCoroutine::returnto | ( | Coroutine & | o, | |
| bool | acquired = false | |||
| ) |
Lets this coroutine return to the given coroutine.
| o | is the coroutine to be continued | |
| acquired | must be true if this object was previously acquired using acquire() |
| virtual void NewCoroutine::start | ( | ) | [pure virtual] |
This is the coroutines main function.
It has to be overridden by subclasses.
Implemented in Microthread.
1.5.1