C++ Actor Framework 0.19
|
Identifies an execution unit, e.g., a worker thread of the scheduler. More...
#include <execution_unit.hpp>
Public Member Functions | |
execution_unit (actor_system *sys) | |
execution_unit (execution_unit &&)=default | |
execution_unit & | operator= (execution_unit &&)=default |
execution_unit (const execution_unit &)=default | |
execution_unit & | operator= (const execution_unit &)=default |
virtual void | exec_later (resumable *ptr)=0 |
Enqueues ptr to the job list of the execution unit. | |
actor_system & | system () const |
Returns the enclosing actor system. | |
proxy_registry * | proxy_registry_ptr () |
Returns a pointer to the proxy factory currently associated to this unit. | |
void | proxy_registry_ptr (proxy_registry *ptr) |
Associated a new proxy factory to this unit. | |
Protected Attributes | |
actor_system * | system_ = nullptr |
proxy_registry * | proxies_ = nullptr |
Identifies an execution unit, e.g., a worker thread of the scheduler.
By querying its execution unit, an actor can access other context information.
|
pure virtual |
Enqueues ptr
to the job list of the execution unit.
resumable
currently executed by this execution unit. Implemented in caf::scoped_execution_unit.
actor_system & caf::execution_unit::system | ( | ) | const |
Returns the enclosing actor system.
resume
on an actor.