holoscan::HoloscanAsyncBufferReceiver

Beta
View as Markdown

HoloscanAsyncBufferReceiver class tracks every received message with a MessageLabel timestamp if data flow tracking is enabled.

Application authors are not expected to use this class directly.

#include <holoscan/holoscan_async_buffer_receiver.hpp>

Inherits from: nvidia::gxf::AsyncBufferReceiver (public)


Constructors

HoloscanAsyncBufferReceiver


Methods

receive_abi

gxf_result_t holoscan::HoloscanAsyncBufferReceiver::receive_abi(
gxf_uid_t *uid
) override

This function overrides the AsyncBufferReceiver::receive_abi() function.

It first calls the base class’ receive_abi() function and extracts the MessageLabel from the received message. It then adds a new OperatorTimestampLabel to the MessageLabel and updates the Operator’s input message label.

op

void holoscan::HoloscanAsyncBufferReceiver::op(
holoscan::Operator *op
)

Sets the associated operator for this HoloscanAsyncBufferReceiver.

It is set at the

Parameters

op
holoscan::Operator *

The operator that this receiver is attached to.

See also: create_input_port() function.

track

void holoscan::HoloscanAsyncBufferReceiver::track()

Member variables

NameTypeDescription
op_holoscan::Operator *The operator that this receiver is attached to.
tracking_boolUsed to decide whether to use data flow tracking or not.
last_received_uid_gxf_uid_tThe last received message UID.