Function rmw_names_and_types_check_zero

Function Documentation

rmw_ret_t rmw_names_and_types_check_zero(rmw_names_and_types_t *names_and_types)

Check that the given names_and_types array is zero initialized.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

Yes

Uses Atomics

No

Lock-Free

Yes

Remark

This function sets the RMW error state on failure.

Thread-safety

Access to the array of names and types is read-only, but it is not synchronized. Concurrent names_and_types reads are safe, but concurrent reads and writes are not.

Parameters:

names_and_types[in] Array to be checked.

Returns:

RMW_RET_OK if array is zero initialized, RMW_RET_INVALID_ARGUMENT otherwise.