Function rmw_service_endpoint_info_set_qos_profiles
Defined in File service_endpoint_info.h
Function Documentation
-
rmw_ret_t rmw_service_endpoint_info_set_qos_profiles(rmw_service_endpoint_info_t *service_endpoint_info, const rmw_qos_profile_t *qos_profiles, size_t endpoint_count, rcutils_allocator_t *allocator)
Set the endpoint QoS profiles in the given service endpoint info data structure.
Assigns the value of the
qos_profilesargument to the data structure’sqos_profilesmember.Attribute
Adherence
Allocates Memory
Yes
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 service endpoint info data structure is not synchronized. It is not safe to read or write the
qos_profilemember of the givenservice_endpointwhile setting it.
- Parameters:
service_endpoint_info – [inout] Data structure to be populated.
qos_profiles – [in] An array of QoS profiles to be assigned.
endpoint_count – [in] Number of endpoints used to construct the service.
allocator – [in] Allocator to be used.
- Returns:
RMW_RET_OKif successful, or- Returns:
RMW_RET_INVALID_ARGUMENTifservice_endpoint_infois NULL, or- Returns:
RMW_RET_INVALID_ARGUMENTifqos_profilesis NULL, or- Returns:
RMW_RET_INVALID_ARGUMENTif ‘endpoint_count’ is not 1 or 2, or- Returns:
RMW_RET_BAD_ALLOCif memory allocation fails, or- Returns:
RMW_RET_ERRORwhen an unspecified error occurs.