Document that spin_once() should not be called from multiple threads#1079
Document that spin_once() should not be called from multiple threads#1079adityapande-1995 merged 2 commits intoros2:rollingfrom
Conversation
12e24cb to
db9aae2
Compare
fujitatomoya
left a comment
There was a problem hiding this comment.
I think this depends on arguments, if user application calls rclpy::spin_once with the same nodes and two different executor, this would be problem since we have a node in 2 wait sets. but we can create multiple threads to call SingleThreadedExecutor::snip_once: for each node, that is usually what user would do.
|
Can you please suggest better wording for this PR?
This is what happened in my experience and it didn't work. I'd actually suggest to deprecate |
|
To be honest, i am not sure how to address this as documentation. How about adding
i believe we can have the same problem with
i understand, for user experience, probably thanks for iterating. |
|
@Mergifyio rebase |
❌ Unable to rebase: user
|
Signed-off-by: AndyZe <andyz@utexas.edu>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
bf1aad9 to
63a2231
Compare
|
CI (repos file build: |
Fixes #1078