libcaf  0.15.4
Public Member Functions | List of all members
caf::scoped_execution_unit Class Reference

Identifies an execution unit, e.g., a worker thread of the scheduler. More...

#include <scoped_execution_unit.hpp>

Inheritance diagram for caf::scoped_execution_unit:
caf::execution_unit

Public Member Functions

 scoped_execution_unit (actor_system *sys=nullptr)
 
void exec_later (resumable *ptr) override
 Delegates the resumable to the scheduler of system().
 
- Public Member Functions inherited from caf::execution_unit
 execution_unit (actor_system *sys)
 
 execution_unit (execution_unit &&)=delete
 
 execution_unit (const execution_unit &)=delete
 
actor_systemsystem () const
 Returns the enclosing actor system. More...
 
proxy_registryproxy_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.
 

Additional Inherited Members

- Protected Attributes inherited from caf::execution_unit
actor_systemsystem_
 
proxy_registryproxies_
 

Detailed Description

Identifies an execution unit, e.g., a worker thread of the scheduler.

By querying its execution unit, an actor can access other context information.

Constructor & Destructor Documentation

caf::scoped_execution_unit::scoped_execution_unit ( actor_system sys = nullptr)
explicit
Precondition
sys != nullptr

The documentation for this class was generated from the following file: