Function rcl_subscription_event_type_is_supported
Defined in File event.h
Function Documentation
-
bool rcl_subscription_event_type_is_supported(const rcl_subscription_event_type_t event_type)
Check if a subscription event type is supported by the active RMW implementation.
This API allows application code to introspect at runtime whether a particular subscription event type is supported by the currently loaded RMW implementation, enabling portable code that adapts gracefully when switching between RMW implementations.
Attribute
Adherence
Allocates Memory
No
Thread-Safe
Yes
Uses Atomics
No
Lock-Free
Yes
- Parameters:
event_type – [in] the subscription event type to check
- Returns:
trueif the event type is supported,falseotherwise