-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 migration code for QMutex/QRecursiveMutex/QMutexLocker #4096
Conversation
Pull Request Test Coverage Report for Build 1018058343
💛 - Coveralls |
I have chosen to migrate |
This is also an example why using |
Right, this overload and also template use case is the perfect fit for auto. I it also still fits to our rule to use auto to avoid repeatiton. I don't think that it rectifies the switch to always use outo. Apart from the readability issues of diffs and code outside the editor it also makes the recent type refactoring less effective because some type checks are bypassed when using auto. |
LGTM. Thank you for wrapping you head around this hard nut. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for CI
This is still draft state. Do we need some manual tests? |
The compiler is the test. The PR is marked as Draft to ask for feedback. Maybe someone has other/better ideas? It was just a quick test. I don't care how it finally looks like. It should just work. |
If using |
You may want to share this on the Qt forum. I am sure others will find it useful. |
I am not particularly proud of this simplistic solution 😅 Moreover we haven't tested it with Qt6 yet. It's an ugly workaround and Qt should have provided a better migration path. |
A quick PoC for portable QMutex/QRecursiveMutex/QMutexLocker code.
Not tested with Qt6 yet.