Function rcl_action_server_wait_set_get_num_entities
Defined in File wait.h
Function Documentation
-
rcl_ret_t rcl_action_server_wait_set_get_num_entities(const rcl_action_server_t *action_server, size_t *num_subscriptions, size_t *num_guard_conditions, size_t *num_timers, size_t *num_clients, size_t *num_services)
Get the number of wait set entities associated with a rcl_action_server_t.
Returns the number of entities that are added to the wait set if rcl_action_wait_set_add_action_server() is called.
Attribute
Adherence
Allocates Memory
No
Thread-Safe
Yes
Uses Atomics
No
Lock-Free
Yes
- Parameters:
action_server – [in] an action server to query
num_subscriptions – [out] the number of subscriptions added when the action server is added to the wait set
num_guard_conditions – [out] the number of guard conditions added when the action server is added to the wait set
num_timers – [out] the number of timers added when the action server is added to the wait set
num_clients – [out] the number of clients added when the action server is added to the wait set
num_services – [out] the number of services added when the action server is added to the wait set
- Returns:
RCL_RET_OK
if call is successful, or- Returns:
RCL_RET_INVALID_ARGUMENT
if any arguments are invalid, or- Returns:
RCL_RET_ACTION_SERVER_INVALID
if the action server is invalid, or- Returns:
RCL_RET_ERROR
if an unspecified error occurs.