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 const constructors to RwLock, Notify, and Semaphore. #2833

Merged
merged 2 commits into from Sep 12, 2020
Merged

Add const constructors to RwLock, Notify, and Semaphore. #2833

merged 2 commits into from Sep 12, 2020

Commits on Sep 12, 2020

  1. Add const constructors to RwLock, Notify, and Semaphore.

    Referring to the types in `tokio::sync`.
    Also add `const` to `new` for the remaining atomic integers in `src/loom` and `UnsafeCell`.
    
    Builds upon previous work in #2790.
    Closes #2756.
    steffahn committed Sep 12, 2020
    Copy the full SHA
    e487fa6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b1e249e View commit details
    Browse the repository at this point in the history