175 start(&sig, &status);
Abstract base class defining the actor lifecycle and request handling interface.
Definition tec_actor.hpp:63
virtual void start(Signal *sig_started, Status *status)=0
Starts the actor's operation.
Actor & operator=(Actor &&)=delete
Deleted move assignment operator.
virtual ~Actor()=default
Virtual destructor.
Actor(const Actor &)=delete
Deleted copy constructor.
Actor & operator=(const Actor &)=delete
Deleted copy assignment operator.
virtual Status run()
Mimics Daemon's behavior.
Definition tec_actor.hpp:172
Actor()=default
Default constructor.
virtual void shutdown(Signal *sig_stopped)=0
Initiates graceful shutdown of the actor.
virtual Status process_request(Request request, Reply reply)=0
Processes a single request and produces a reply.
Actor(Actor &&)=delete
Deleted move constructor.
virtual Status terminate()
Mimics Daemon's behavior.
Definition tec_actor.hpp:183
A thread-safe signal mechanism for inter-thread synchronization.
Definition tec_signal.hpp:44
void wait() const
Waits indefinitely until the signal is set.
Definition tec_signal.hpp:85
Common definitions and utilities for the tec namespace.
Defines a flexible message type and helper functions for the tec namespace.
std::any Reply
Type alias for a reply object that can hold any object.
Definition tec_message.hpp:55
std::any Request
Type alias for a request object that can hold any object.
Definition tec_message.hpp:49
Defines a thread-safe signal implementation using mutex and condition variable.
Defines error handling types and utilities for the tec namespace.