Function rcl_context_get_rmw_context
Defined in File context.h
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
, thenNULL
is returned. If context is zero-initialized, thenNULL
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]
- Parameters:
context – [in] object from which the rmw context should be retrieved.
- Returns:
pointer to rmw context if valid, otherwise
NULL