libcaf
0.13.2
|
A cooperatively executed task managed by one or more instances of execution_unit
.
More...
#include <resumable.hpp>
Public Types | |
enum | resume_result { resume_later, awaiting_message, done, shutdown_execution_unit } |
Public Member Functions | |
virtual void | attach_to_scheduler ()=0 |
Initializes this object, e.g., by increasing the the reference count. | |
virtual void | detach_from_scheduler ()=0 |
Uninitializes this object, e.g., by decrementing the the reference count. | |
virtual resume_result | resume (execution_unit *, size_t max_throughput)=0 |
Resume any pending computation until it is either finished or needs to be re-scheduled later. More... | |
A cooperatively executed task managed by one or more instances of execution_unit
.
|
pure virtual |
Resume any pending computation until it is either finished or needs to be re-scheduled later.
Implemented in caf::local_actor.