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] ifAttribute
Adherence
Allocates Memory
No
Thread-Safe
Yes
Uses Atomics
Yes
Lock-Free
Yes [1]
atomic_is_lock_free()returns true foratomic_uint_least64_t- Parameters:
context – [in] object which should be checked for validity
- Returns:
trueif valid, otherwisefalse