-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use signal safe synchronization with platform specific semaphores #607
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, thanks for writing this down @wjwwood !
Edit: oops, ros2/build_farmer#152 (comment) |
I'm looking into it. |
Ok, I tested this a bunch after @sloretz's comment and neither he nor I could get anything to hang on ctrl-c (sigint). I also tried to address all the feedback, but I also had started refactoring the This is ready for re-review! Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments/questions.
Signed-off-by: William Woodall <william@osrfoundation.org>
Signed-off-by: William Woodall <william@osrfoundation.org>
Co-Authored-By: wjwwood <william+github@osrfoundation.org>
731170d
to
74d018d
Compare
Signed-off-by: William Woodall <william@osrfoundation.org>
Signed-off-by: William Woodall <william@osrfoundation.org>
@jacobperron can you quickly re-review since I addressed more feedback, fixed cpplint, and rebased? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-Authored-By: wjwwood <william+github@osrfoundation.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One additional observation. BTW I cannot reproduce test failures as described in #605 (comment) with this branch.
Waiting on Windows ci still. |
Signed-off-by: William Woodall <william@osrfoundation.org>
I had a small bug in the Windows I'm still looking for another approval if anyone has time. |
Signed-off-by: William Woodall <william@osrfoundation.org>
Oops, I had to fix one more thing (actually it should have worked since |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too!
Sounds good to me, merging. |
…s2#607) * use signal safe synchronization with platform specific semaphores Signed-off-by: William Woodall <william@osrfoundation.org> * addressed feedback and refactored into separate files Signed-off-by: William Woodall <william@osrfoundation.org> * Apply suggestions from code review Co-Authored-By: wjwwood <william+github@osrfoundation.org> * include what you use (cpplint) Signed-off-by: William Woodall <william@osrfoundation.org> * avoid redundant use of SignalHandler:: Signed-off-by: William Woodall <william@osrfoundation.org> * Update rclcpp/src/rclcpp/signal_handler.hpp Co-Authored-By: wjwwood <william+github@osrfoundation.org> * fix Windows build Signed-off-by: William Woodall <william@osrfoundation.org> * actually fix Windows Signed-off-by: William Woodall <william@osrfoundation.org>
…ros2#607) Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This is a follow up of this comment: #605 (comment)
This is API and ABI neutral so we can merge it at anytime, but my preference would be after #605 but in for Crystal.