|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Template class combining Worker and Actor for synchronous request processing in a dedicated thread.
More...
#include <cassert>#include <memory>#include <mutex>#include "tec/tec_def.hpp"#include "tec/tec_signal.hpp"#include "tec/tec_status.hpp"#include "tec/tec_trace.hpp"#include "tec/tec_worker.hpp"#include "tec/tec_actor.hpp"Go to the source code of this file.
Classes | |
| class | tec::ActorWorker< TParams, TActor > |
A Worker that owns and runs an Actor in a dedicated thread. More... | |
| struct | tec::ActorWorker< TParams, TActor >::Builder< WorkerDerived, ActorDerived > |
Factory for constructing ActorWorker as a Daemon pointer. More... | |
Template class combining Worker and Actor for synchronous request processing in a dedicated thread.
The tec::ActorWorker<TParams, TActor> class is a composite worker that:
Actor instance.Payload.start → shutdown) with timeout-aware signals.It bridges the asynchronous Actor interface with the synchronous Worker/Daemon model.
| TParams | Parameter type (must derive from ActorParams or similar). |
| TActor | Concrete actor type (must derive from tec::Actor). |