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

RwLock guards are Sync if T is #45682

Merged
merged 1 commit into from
Nov 7, 2017
Merged

Commits on Nov 1, 2017

  1. RwLock guards are Sync if T is

    Currently, the compiler requires `T` to also be `Send`.  There is no reason for
    that.  `&Rw{Read,Write}LockGuard` only provides a shared referenced to `T`, sending
    that across threads is safe if `T` is `Sync`.
    RalfJung committed Nov 1, 2017
    Configuration menu
    Copy the full SHA
    71534c4 View commit details
    Browse the repository at this point in the history