Function rcl_context_is_valid
Defined in File context.h
Function Documentation
-
bool rcl_context_is_valid(const rcl_context_t *context)
Return
trueif the given context is currently valid, otherwisefalse.If context is
NULL, thenfalseis returned. If context is zero-initialized, thenfalseis returned. If context is uninitialized, then it is undefined behavior.
[1] if returns true forAttribute
Adherence
Allocates Memory
No
Thread-Safe
Yes
Uses Atomics
Yes
Lock-Free
Yes [1]
- Parameters:
context – [in] object which should be checked for validity
- Returns:
trueif valid, otherwisefalse