Function rcl_context_is_valid
Defined in File context.h
Function Documentation
-
bool rcl_context_is_valid(const rcl_context_t *context)
Return
true
if the given context is currently valid, otherwisefalse
.If context is
NULL
, thenfalse
is returned. If context is zero-initialized, thenfalse
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 which should be checked for validity
- Returns:
true
if valid, otherwisefalse