Function rcl_context_is_valid

Function Documentation

bool rcl_context_is_valid(const rcl_context_t *context)

Return true if the given context is currently valid, otherwise false.

If context is NULL, then false is returned. If context is zero-initialized, then false 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 which should be checked for validity

Returns:

true if valid, otherwise false