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

Make some special member functions of shared_mutex, shared_timed_mutex, and shared_lock defaulted #3352

Merged

Conversation

frederick-vs-ja
Copy link
Contributor

Destructors of shared_mutex and shared_timed_mutex can be implicitly declared. Towards #845.

Destructor of shared_mutex will become trivial after the change. I'm not sure whether this has ABI impact.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner January 19, 2023 08:52
stl/inc/shared_mutex Show resolved Hide resolved
stl/inc/shared_mutex Outdated Show resolved Hide resolved
stl/inc/shared_mutex Outdated Show resolved Hide resolved
tests/libcxx/expected_results.txt Outdated Show resolved Hide resolved
tests/libcxx/skipped_tests.txt Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Jan 19, 2023
@StephanTLavavej
Copy link
Member

Thanks - I've pushed a merge with main to fix trivial adjacent-add conflicts in the libcxx skip lists (curiously, GitHub didn't think there were conflicts, but command-line git did; they might use different auto-merge techniques), plus a typo fix.

I believe that this preserves ABI because the triviality of copy ctors is not affected.

@StephanTLavavej StephanTLavavej self-assigned this Feb 2, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit d0c8f14 into microsoft:main Feb 3, 2023
@StephanTLavavej
Copy link
Member

Thanks for sharing these improvements! 😹 🎉 🚀

@frederick-vs-ja frederick-vs-ja deleted the defaulted-shared-mutex branch February 3, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants