Function rcl_log_levels_shrink_to_size

Function Documentation

rcl_ret_t rcl_log_levels_shrink_to_size(rcl_log_levels_t *log_levels)

Shrink log levels structure.

Attribute

Adherence

Allocates Memory

Yes

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:

log_levels[in] The structure to be shrunk.

Returns:

RCL_RET_OK if the memory was successfully shrunk, or

Returns:

RCL_RET_INVALID_ARGUMENT if log_levels is NULL or if its allocator is invalid, or

Returns:

RCL_RET_BAD_ALLOC if reallocating memory failed.