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

Rewrite example to show potential deadlock #36

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

bertptrs
Copy link
Owner

The example originally showed a certain deadlock, which was not as clear as it could be. The new version shows intentionally racy code that may result in a successful execution but may also deadlock.

Fixes #35.

The example originally showed a certain deadlock, which was not as clear
as it could be. The new version shows intentionally racy code that may
result in a successful execution but may also deadlock.
@bertptrs
Copy link
Owner Author

bors r+

1 similar comment
@bertptrs
Copy link
Owner Author

bors r+

@bertptrs
Copy link
Owner Author

No merge bot today, merging manually since CI passes.

@bertptrs bertptrs merged commit 9ca5af2 into master Nov 13, 2023
5 checks passed
@bertptrs bertptrs deleted the example/show-potential branch November 13, 2023 07:37
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.

Please help me understand the example.
1 participant