Class ThreadedNode
Defined in File ThreadedNode.hpp
Inheritance Relationships
Base Type
public dai::Node(Class Node)
Derived Types
public dai::DeviceNode(Class DeviceNode)public dai::node::ThreadedHostNode(Class ThreadedHostNode)
Class Documentation
-
class ThreadedNode : public dai::Node
Subclassed by dai::DeviceNode, dai::node::ThreadedHostNode
Public Functions
-
ThreadedNode()
-
virtual ~ThreadedNode()
-
inline virtual void onStart()
Function called at the beginning of the
startfunction.This function may be overridden by the user to perform any needed tasks prior to starting this node’s main thread.
-
inline virtual void onStop()
Function called at the end of the
stopfunction.This function may be overridden by the user to perform any needed tasks directly after stopping this node’s main thread.
-
virtual void start() override
Start node execution.
-
virtual void wait() override
Wait for node to finish execution.
-
virtual void stop() override
Stop node execution.
-
virtual void run() = 0
-
bool isRunning() const
-
virtual void setLogLevel(dai::LogLevel level)
Sets the logging severity level for this node.
- Parameters:
level – Logging severity level
-
virtual dai::LogLevel getLogLevel() const
Gets the logging severity level for this node.
- Returns:
Logging severity level
-
Node() = default
-
Node(bool conf)
-
ThreadedNode()