Function rcl_wait_set_is_valid

Function Documentation

bool rcl_wait_set_is_valid(const rcl_wait_set_t *wait_set)

Return true if the wait set is valid, else false.

A wait set is invalid if:

  • the implementation is NULL (rcl_wait_set_init not called or failed)

  • the wait set has been finalized with rcl_wait_set_fini

Also return false if the wait set pointer is NULL.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:

wait_set[in] the rcl_wait_set_t to be validated

Returns:

true if the wait_set is valid, otherwise false.