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 more of Node thread-safe #16

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Make more of Node thread-safe #16

merged 2 commits into from
Aug 29, 2023

Conversation

domfarolino
Copy link
Owner

This PR makes progress on #13 by making Node::node_channel_map_ and Node::pending_invitations_ thread-safe. This is tested by a CoreUnitTest.MultiThreadRacyInvitationSending that this PR adds, which tests a bunch of threads sending a bunch of invitations at the same time, and asserting that internal state is consistently maintained.

@domfarolino domfarolino merged commit d1f1a90 into master Aug 29, 2023
2 checks passed
@domfarolino domfarolino deleted the more-thread-safety branch August 29, 2023 01:11
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.

1 participant