|
cortex 0.0.1
|
Provides a mechanism for a coroutine to suspend itself. More...
#include <coroutine_suspend_context.hpp>
Public Member Functions | |
| CoroutineSuspendContext (const CoroutineSuspendContext &)=delete | |
| CoroutineSuspendContext (CoroutineSuspendContext &&)=delete | |
| CoroutineSuspendContext & | operator= (const CoroutineSuspendContext &)=delete |
| CoroutineSuspendContext & | operator= (CoroutineSuspendContext &&)=delete |
| virtual void | Suspend ()=0 |
| Suspends the current coroutine's execution. | |
Static Public Member Functions | |
| static void * | operator new (std::size_t)=delete |
| static void * | operator new[] (std::size_t)=delete |
Protected Member Functions | |
| virtual | ~CoroutineSuspendContext ()=default |
| CoroutineSuspendContext ()=default | |
Provides a mechanism for a coroutine to suspend itself.
This class is passed to the coroutine body and contains the Suspend() method to yield control back to the caller.
|
delete |
|
delete |
|
protectedvirtualdefault |
|
protecteddefault |
|
staticdelete |
|
staticdelete |
|
delete |
|
delete |
|
pure virtual |
Suspends the current coroutine's execution.
Control returns to the point where Coroutine::Resume() was called. Execution will resume from this point when Resume() is called again.