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 MappedMutexGuard API #2056

Merged
merged 1 commit into from
Jan 29, 2020
Merged

Add MappedMutexGuard API #2056

merged 1 commit into from
Jan 29, 2020

Conversation

adamlesinski
Copy link

MappedMutexGuard is used to map some locked data to a narrower
view of that data, while maintaining the lock in a new RAII wrapper.

This mirrors the same API in parking_lot.

MappedMutexGuard is used to map some locked data to a narrower
view of that data, while maintaining the lock in a new RAII wrapper.
@cramertj
Copy link
Member

Looks great, thanks!

@cramertj cramertj merged commit fb61ef5 into rust-lang:master Jan 29, 2020
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.

2 participants