rcl_wait_set_add_subscription() allocates memory???
Hi all,
Seeing https://github.com/ros2/rcl/blob/gala..., it explains that rcl_wait_set_add_subscription() allocates memory.
* Allocates Memory | Yes
* Thread-Safe | No
* Uses Atomics | No
* Lock-Free | Yes
*
....
*/
RCL_PUBLIC
RCL_WARN_UNUSED
rcl_ret_t
rcl_wait_set_add_subscription(
rcl_wait_set_t * wait_set,
const rcl_subscription_t * subscription,
size_t * index);
I tried to find out where memory allocation happens from:
, but it doesn't look like any new memory allocation happens.
Maybe the documentation is wrong?
Thanks, Sean