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 a safe implementation of MutexArc::access* methods #8966

Closed
wants to merge 4 commits into from

Conversation

flaper87
Copy link
Contributor

@flaper87 flaper87 commented Sep 3, 2013

Current access methods are nestable and unsafe. This patch renames
current methods implementation - prepends unsafe_ - and implements 2 new
methods that are both safe and un-nestable.

Fixes #7473

Current access methods are nestable and unsafe. This patch renames
current methods implementation - prepends unsafe_ - and implements 2 new
methods that are both safe and un-nestable.

Fixes rust-lang#7473
@bblum
Copy link
Contributor

bblum commented Sep 4, 2013

Overall looks good, some minor stylistic cleanup needs to happen before this can go in. Please write "r? @bblum" when you update the PR.

@flaper87
Copy link
Contributor Author

flaper87 commented Sep 4, 2013

r? @bblum

@bblum
Copy link
Contributor

bblum commented Sep 4, 2013

can you tweak the documentation to name MutexArc and RWArc explicitly before i give r+?

@flaper87
Copy link
Contributor Author

flaper87 commented Sep 4, 2013

r? @bblum

bors added a commit that referenced this pull request Sep 4, 2013
Current access methods are nestable and unsafe. This patch renames
current methods implementation - prepends unsafe_ - and implements 2 new
methods that are both safe and un-nestable.

Fixes #7473
@bors bors closed this Sep 4, 2013
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.

Extra impl for (not-unsafe) Freeze version of MutexARC accessor methods
3 participants