-
Notifications
You must be signed in to change notification settings - Fork 487
use signal safe synchronization with platform specific semaphores #607
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
Conversation
hidmic
left a comment
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 :) |
jacobperron
left a comment
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 <[email protected]>
Signed-off-by: William Woodall <[email protected]>
Co-Authored-By: wjwwood <[email protected]>
731170d to
74d018d
Compare
Signed-off-by: William Woodall <[email protected]>
Signed-off-by: William Woodall <[email protected]>
|
@jacobperron can you quickly re-review since I addressed more feedback, fixed cpplint, and rebased? |
jacobperron
left a comment
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 <[email protected]>
hidmic
left a comment
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 <[email protected]>
|
I had a small bug in the Windows I'm still looking for another approval if anyone has time. |
Signed-off-by: William Woodall <[email protected]>
|
Oops, I had to fix one more thing (actually it should have worked since |
hidmic
left a comment
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 <[email protected]> * addressed feedback and refactored into separate files Signed-off-by: William Woodall <[email protected]> * Apply suggestions from code review Co-Authored-By: wjwwood <[email protected]> * include what you use (cpplint) Signed-off-by: William Woodall <[email protected]> * avoid redundant use of SignalHandler:: Signed-off-by: William Woodall <[email protected]> * Update rclcpp/src/rclcpp/signal_handler.hpp Co-Authored-By: wjwwood <[email protected]> * fix Windows build Signed-off-by: William Woodall <[email protected]> * actually fix Windows Signed-off-by: William Woodall <[email protected]>
…ros2#607) Signed-off-by: Ivan Santiago Paunovic <[email protected]>
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.