Class AsyncPingTxOp
Defined in File async_ping_tx.hpp
Base Type
public holoscan::Operator
(Class Operator)
-
class AsyncPingTxOp : public holoscan::Operator
Simple asynchronous transmitter operator.
==Named Outputs==
out : int
An index value that increments by one on each call to
compute
. The starting value is 1.
==Parameters==
delay: Ping delay in ms. Optional (default:
10L
)count: Ping count. Optional (default:
0UL
)async_condition: AsynchronousCondition adding async support to the operator. Optional (default:
nullptr
)
Public Functions
- HOLOSCAN_OPERATOR_FORWARD_ARGS (AsyncPingTxOp) AsyncPingTxOp()=default
-
virtual void setup(OperatorSpec &spec) override
Define the operator specification.
- Parameters
spec – The reference to the operator specification.
-
virtual void initialize() override
Initialize the operator.
This function is called when the fragment is initialized by Executor::initialize_fragment().
-
virtual void start() override
Implement the startup logic of the operator.
This method is called multiple times over the lifecycle of the operator according to the order defined in the lifecycle, and used for heavy initialization tasks such as allocating memory resources.
-
virtual void compute(InputContext&, OutputContext &op_output, ExecutionContext&) override
Implement the compute method.
This method is called by the runtime multiple times. The runtime calls this method until the operator is stopped.
- Parameters
op_input – The input context of the operator.
op_output – The output context of the operator.
context – The execution context of the operator.
-
virtual void stop() override
Implement the shutdown logic of the operator.
This method is called multiple times over the lifecycle of the operator according to the order defined in the lifecycle, and used for heavy deinitialization tasks such as deallocation of all resources previously assigned in start.
-
void async_ping()