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

Replace RWLock with c++11 utils #1600

Merged
merged 3 commits into from
May 3, 2021
Merged

Replace RWLock with c++11 utils #1600

merged 3 commits into from
May 3, 2021

Conversation

piponazo
Copy link
Collaborator

@piponazo piponazo commented May 3, 2021

Rescue #696 from old-master

tbeu and others added 3 commits May 3, 2021 14:54
Current design on Windows was broken anyway, since legacy class `RWLock` does not implement a proper rwlock (shared read and exclusive write)

Once we are allowed using C++14 features, we can replace the `std::mutex` by `std::shared_timed_mutex` and the read-access locks by `std::shared_lock`.
Once we are allowed using C++17 features, we can replace the `std::mutex` by `std::shared_mutex` and the read-acces locks by `std::shared_lock`.
@piponazo
Copy link
Collaborator Author

piponazo commented May 3, 2021

I am merging this as it is, since this was already reviewed in the past.

@piponazo piponazo merged commit 1b45779 into main May 3, 2021
@piponazo piponazo deleted the main-RemoveRWLock branch May 3, 2021 15:42
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