Function rcl_context_get_rmw_context

Function Documentation

rmw_context_t *rcl_context_get_rmw_context(rcl_context_t *context)

Return pointer to the rmw context if the given context is currently valid, otherwise NULL.

If context is NULL, then NULL is returned. If context is zero-initialized, then NULL is returned. If context is uninitialized, then it is undefined behavior.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

Yes

Uses Atomics

Yes

Lock-Free

Yes [1]

[1] if returns true for

Parameters:

context[in] object from which the rmw context should be retrieved.

Returns:

pointer to rmw context if valid, otherwise NULL