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

Add more tests and impl Drop for Access guard #119

Merged
merged 2 commits into from
Sep 28, 2020
Merged

Add more tests and impl Drop for Access guard #119

merged 2 commits into from
Sep 28, 2020

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Sep 28, 2020

This implements Drop for the public access guards so that they are correctly drop checked, preventing the Shared<T> they are associated with from being dropped before it!

This was discovered thanks to a debug assertion related to Shared<T>, which checks that access is exclusive once it is being de-allocated.

@udoprog udoprog added bug Something isn't working enhancement New feature or request labels Sep 28, 2020
@udoprog udoprog merged commit fc4d91b into master Sep 28, 2020
@udoprog udoprog deleted the fix-drop branch September 28, 2020 06:05
@udoprog udoprog added the changelog Issue has been added to the changelog label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working changelog Issue has been added to the changelog enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant