22 ThreadBased(std::string
type,
Id id, std::string
name);
23 ~ThreadBased()
override;
29 virtual void exec(std::stop_token stopToken) = 0;
36 std::atomic_bool _isInDtor{
false};
Base class for all runtime-executed nodes in a dfx dataflow graph.
Abstract base class for all nodes in the dfx runtime.
Definition Node.hpp:91
ExecutionFlowPolicy
Policy controlling how execution is chained after message delivery.
Definition Node.hpp:106
uint32_t Id
Node identifier type (unique and stable within a graph instance).
Definition Node.hpp:113
std::string const & name() const noexcept
Get the node name.
Definition Node.hpp:134
std::string const & type() const noexcept
Get the node type.
Definition Node.hpp:132
void handleMessage(Core::InputPort const &, Core::MessagePtr) override
Handle an incoming message on an input port.
Definition ThreadBased.hpp:33
void setExecutionFlowPolicy(ExecutionFlowPolicy) override
Set the execution flow policy used by the runtime scheduler.
void stopImpl() override
Called by stop before the node is marked stopped.
void startImpl() override
Called by start before the node is marked running.
std::unique_ptr< Message > MessagePtr
Unique ownership handle for messages.
Definition Message.hpp:27
Definition MimeTypeRouter.hpp:18