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 RwLockReadGuard::map for transforming guards to contain sub-borrows. #30834

Merged
merged 3 commits into from
Feb 3, 2016

Commits on Jan 30, 2016

  1. Add guard map methods for transforming guards to contain sub-borrows.

    This is very useful when the lock is synchronizing access to a data
    structure and you would like to return or store guards which contain
    references to data inside the data structure instead of the data structure
    itself.
    reem committed Jan 30, 2016
    Configuration menu
    Copy the full SHA
    a4343e9 View commit details
    Browse the repository at this point in the history
  2. Change MutexGuard and RwLockWriteGuard to store &mut T not &UnsafeCel…

    …l<T>
    
    This centralizes the unsafety of converting from UnsafeCell<T> to &mut T.
    reem committed Jan 30, 2016
    Configuration menu
    Copy the full SHA
    bf60078 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2016

  1. Configuration menu
    Copy the full SHA
    fc875b0 View commit details
    Browse the repository at this point in the history