|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Factory for constructing ActorWorker as a Daemon pointer.
More...
#include <tec_actor_worker.hpp>
Public Member Functions | |
| std::unique_ptr< Daemon > | operator() (const typename WorkerDerived::Params ¶ms) const |
Creates a std::unique_ptr<Daemon> owning the worker. | |
Factory for constructing ActorWorker as a Daemon pointer.
Enables polymorphic creation of derived worker/actor pairs while preserving type safety via static_assert.
| WorkerDerived | Final ActorWorker specialization. |
| ActorDerived | Final Actor implementation. |
|
inline |
Creates a std::unique_ptr<Daemon> owning the worker.
| params | Parameters used to construct both worker and actor. |
WorkerDerived must inherit from ActorWorker. ActorDerived must inherit from Actor.