Function rmw_topic_endpoint_info_set_qos_profile
Defined in File topic_endpoint_info.h
Function Documentation
-
rmw_ret_t rmw_topic_endpoint_info_set_qos_profile(rmw_topic_endpoint_info_t *topic_endpoint_info, const rmw_qos_profile_t *qos_profile)
Set the endpoint QoS profile in the given topic endpoint info data structure.
Assigns the value of the
qos_profileargument to the data structure’sqos_profilemember.Attribute
Adherence
Allocates Memory
No
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
Remark
This function sets the RMW error state on failure.
- Thread-safety
Setting a member is a reentrant procedure, but access to the topic endpoint info data structure is not synchronized. It is not safe to read or write the
qos_profilemember of the giventopic_endpointwhile setting it.
- Parameters:
topic_endpoint_info – [inout] Data structure to be populated.
qos_profile – [in] QoS profile to be set.
- Returns:
RMW_RET_OKif successful, or- Returns:
RMW_RET_INVALID_ARGUMENTiftopic_endpoint_infois NULL, or- Returns:
RMW_RET_INVALID_ARGUMENTifqos_profileis NULL, or- Returns:
RMW_RET_ERRORwhen an unspecified error occurs.