Skip to content
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

Make events threadsafe (gazebo9) #3064

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Make events threadsafe (gazebo9) #3064

merged 1 commit into from
Aug 16, 2021

Conversation

j-rivero
Copy link
Contributor

Back port of #3042

Original author is @lihui815

- Initial connection (insert) and cleanup (remove) locked with mutex
- Signal (access) checks for object not null before attempting to access (not locking because would need recursive mutex)
- Declare mutex as mutable so EventCount const method can block it
- Include race condition test to play with connections inside an event

(contribution by Sonia Jin from AWS, back port of #3042)
Co-authored-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@j-rivero j-rivero requested a review from iche033 August 13, 2021 17:50
@j-rivero j-rivero self-assigned this Aug 13, 2021
Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI looks fine aside from the UNIT_Event_TEST failure on macOS that is documented in #3063

@j-rivero j-rivero merged commit ee44d86 into gazebo9 Aug 16, 2021
@j-rivero j-rivero deleted the gazebo9_backport_3042 branch August 16, 2021 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants